> > To ensure some locales are available, I think you can use LOCPATH,
> > and create locales locally, so that the following are available:
> >   de_DE ISO-8859-1
> >   en_US ISO-8859-1
> >   fr_FR ISO-8859-1
> > 
> > 
> > see /usr/sbin/locale-gen on how to generate these locale data.
> 
> ok, it's no problem to generate the data, but I cannot find any
> reference to LOCPATH. Any hints?

I couldn't find any reference to LOCPATH either, but 
setlocale seems to look at directories specified by LOCPATH
in addition to (or instead of) the standard location (/usr/lib/locale)


One example execution of LOCPATH=/tmp strace locale gives me:

        .
        .
open("/usr/lib/locale/ja.eucJP/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file 
or directory)
open("/tmp/ja.eucjp/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/lib/locale/ja.eucjp/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file 
or directory)
open("/tmp/ja/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/ja/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or 
directory)
        .
        .


I also found out that it is mostly undocumented, but apparently is a 
standard feature pretty much known by those who do know, so 
documentation is probably very lacking.


regards,
        junichi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to