xterm(229-1) does not accept "-u8"

Poor Yorick com.cygwin.cygwin@pooryorick.com
Mon Aug 27 14:53:00 GMT 2007


>  From: Yongwei Wu <wuyongwei@gmail.com>
>  Subject: Re: xterm(229-1) does not accept "-u8"
>  Sent: 2007-08-27 14:01

>  is enough to do much, like viewing multi-byte documents in Vim.  I use
>  this script to start a UTF-8 XTerm:
>  
>  #!/bin/sh
>  LC_CTYPE=en_US.UTF-8 xterm -u8 -fn "*-medium-*--18-*-iso10646-1" -fb
>  "*-bold-*--18-*-iso10646-1" -fw "*-medium-*-ja-18-*-iso10646-1" -e
>  bash $@ &
>  

Double quotes around the "$@" variable will ensure that positional variables are passed into the second shell undisturbed:

#!/bin/sh
LC_CTYPE=en_US.UTF-8 xterm -u8 -fn "*-medium-*--18-*-iso10646-1" -fb
"*-bold-*--18-*-iso10646-1" -fw "*-medium-*-ja-18-*-iso10646-1" -e
bash "$@" &

-- 
Poor Yorick


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



More information about the Cygwin-xfree mailing list