[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wcwidth and glibc 2.2
Thanks a lot.....
Bruno Haible wrote:
> Dennis L. Goyette Sr. writes:
> > Can anybody give me a "what's up" on which LC_ I should define to do
> > unicode....I'm running redhat 7.0 and what to be able to display CJK characters
> > easily.. are there certain fonts I need installed
>
> Yes. The fonts I recommend most are
> - for programs using fixed-width fonts:
> Markus Kuhn's ucs-fonts package
> http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html
> - for programs using proportional fonts:
> the GNU unifont from Roman Czyborra
> http://czyborra.com/unifont/
> the BitStream Cyberbit font
> ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/Cyberbit.ZIP
>
> > how do I check to see which ones I have installed
>
> Using xlsfonts.
>
> > do I use wprintf
>
> I don't recommend it - it doesn't mix well with printf. Better use
> printf with the %lc and %ls directives.
>
> > if I do a setlocale(LC_ALL, "Japanese") MB_CUR_MAX is 3....
>
> Sure, because EUC-JP has at most 3 bytes per char.
>
> > what do I need to setlocale to to get MB_CUR_MAX to 2 ......
>
> Use the ja_JP.SJIS locale. You won't be able to display JIS X 0212
> characters in this locale.
>
> Bruno
> -
> Linux-UTF8: i18n of Linux on all levels
> Archive: http://mail.nl.linux.org/lists/
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/