[MPlayer-dev-eng] [PATCH] implement the setlocale feature

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Jun 19 22:31:51 CEST 2006


Hello,
On Mon, Jun 19, 2006 at 01:23:13PM -0400, Rich Felker wrote:
> No, there are utf8->utf32 conversion functions. What's needed here is
> utf16->utf8.

No, utf8->utf16 is needed at most. Currently the fallback without iconv
is a "trivial" ascii->utf16 conversion.

> > 2) Stuff like strlen(path)*2 to get the length of UTF-16 string will only
> > work for pure ascii as well...
> 
> No, it will not work for anything containing ascii or latin1

Checking the code sometimes helps understanding. path is the pointer to
the string before conversion.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list