This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: xterm(229-1) does not accept "-u8"
- From: "Yongwei Wu" <wuyongwei at gmail dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Mon, 27 Aug 2007 22:53:30 +0800
- Subject: Re: xterm(229-1) does not accept "-u8"
- Reply-to: cygwin-xfree at cygwin dot com
> 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/