Re: Locale variables
Posted in 1999
Alanoly Andrews wrote: > A question about "locale" settings: > > One of our programs needs to know at runtime > what the "decimal separator" is (whether it is a > period or a comma or something else) in a decimal > datatype. We do not know in advance what > "CLIENT_LOCALE" or 'SERVER_LOCALE" a user > may set for a session. We know that using the > "CLIENT_LOCALE" value, it is possible to traverse > the informix directories and read a file called "lg_tr.lc" > to get the decimal separator. Is there an easier way, > such as an environment variable or a function call > which will return the "decimal separator" character for a > particular "locale" setting? > > Thanks. > > IDS 7.31 UC2 > AIX 4.3.2 Hmmm...probably not. You'd have to go poking around the GLS documentation to verify that I'm not talking balderdash, but I4GL has a dickens of a job finding out about the currency symbol and the decimal point and thousands separator. Some of the nastiest code, and it changes from release to release. So I'm not all that hopeful. -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.62 -- see http://www.perl.com/CPAN #include <disclaimer.h>