xterm(229-1) does not accept "-u8"
Yongwei Wu
wuyongwei@gmail.com
Mon Aug 27 15:15:00 GMT 2007
> Poor Yorick wrote:
> > Yongwei wrote:
> > #!/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 "$@" &
I am sorry to send the wrong code. The `-e bash' was added when I
tried to figure out what went wrong (perhaps the -u8 not working
issue, but I do not remember exactly). It does not work as intended.
The purpose of $@ here is to pass special xterm flags like `-cjk'.
The script should be:
#!/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" $@ &
Thanks for giving hints, anyway.
Best regards,
Yongwei
--
Wu Yongwei
URL: http://wyw.dcweb.cn/
--
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