Re: [AD] Allegro unable to deal with non ascii filenames |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2006-05-27, Chris <chris.kcat@xxxxxxxxxx> wrote:
> On Saturday 27 May 2006 14:48, Elias Pschernig wrote:
> > On Sat, 2006-05-27 at 22:40 +0200, Michal Molhanec wrote:
> > > Hello,
> > > don't tell me that there is no way on Linux how to ask system which
> > > system encoding is used and/or to convert string from/to UTF-8 to the
> > > system encoding.
> >
> > Well, probably all libc functions will use the current locale setting.
> > So if your locale is UTF8, filenames will be returned as UTF8. If it is
> > latin1, filenames will be latin1.
>
> Wouldn't it be possible to read this info from the LANG environment variable?
I don't think LANG itself is the right variable (being a fallback for
the LC_* variables) but I *think* that's how it should be handled.
Peter