[OpenIndiana-discuss] Locale problems in OI.... seems not to work???

Hans J. Albertsson hans.j.albertsson at branneriet.se
Thu Apr 4 17:15:15 UTC 2013


I'm having problems with the locale command.

I fully expected the command

locale -m

to print out the charmap for my locale (which is sv_SE.UTF-8), but it 
says the charmap isn't available.

locale -ck alpha

prints out ("\ <newline>" manually added for clarity)
-----
hans at klaus%93%19:03> locale -ck alpha
LC_CTYPE
alpha="A";"B";"C";"D";"E";"F";"G";"H";"I";"J";"K";"L";"M";"N";"O";"P";"Q";"R";"S";"T";"U";"V";"W";"X";"Y";"Z";\
"a";"b";"c";"d";"e";"f";"g";"h";"i";"j";"k";"l";"m";"n";"o";"p";"q";"r";"s";"t";"u";"v";"w";"x";"y";"z"
-----

which would be true only for a "C" or "POSIX" locale.

the same error occurs for all other 8bit locales I've tried.

Collation in file listings is done correctly in all 8bit locales, so 
possibly this is only a problem with the locale command.

One would expect a locale management command to be locale aware.... :-(

I actually have a use for a correctly working locale command.




More information about the OpenIndiana-discuss mailing list