On Thu, 17 Oct 2002, Thomas Wolff wrote:
> wolff@fscce14:~> uname -a ; locale -a | grep UTF-8
> SunOS fscce14 5.8 Generic_108528-12 sun4us sparc FJSV,GPUSK
> en_US.UTF-8
> sv.UTF-8
> sv_SE.UTF-8
> sv_SE.UTF-8@euro
> > In principle, you could set
> >
> > LANG=de LC_CTYPE=en_US.UTF-8
> OK, I get:
>
> wolff@fscce14:~> LANG=de LC_CTYPE=en_US.UTF-8 /bin/sh
> couldn't set locale correctly
> couldn't set locale correctly
That's probably because you don't have 'de' locale installed.
Have you tried 'LANG=sv_SE.UTF-8' if Swedish is all right with you?
If that's the case, you don't have to set LC_CTYPE to en_US.UTF-8.
Or, you can unset LANG and set other LC_* as you wish.
LC_CTYPE=en_US.UTF-8 or sv_SE.UTF-8 (character classification,
collation and so forth would behave
differently)
LC_MESSAGES=C (if just plain English is better for you than
localized messages)
LC_TIME=C (again, just want plain old Unix/Posix behavior)
.....
> I want an LC_* setting that tells my applications to use UTF-8 and
> doesn't affect the system inappropriately otherwise, and that works
> with SunOS and doesn't let /bin/sh choke!
I don't know why Sun doesn't ship its Solaris with all the locales
supported by Solaris. Perhaps, a marketing ploy :-) DEC (now Compaq and
should it HP by now?) Digital Unix 4.x (now Tru64) came with all the
locales on OS CD-ROM. It's up to the system administrator which locale
is installed.
Jungshik Shin
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/