[MPlayer-dev-eng] [PATCH] Convert UCS-2LE encoded asf tag
Rich Felker
dalias at aerifal.cx
Thu Aug 24 21:26:03 CEST 2006
On Thu, Aug 24, 2006 at 07:46:49PM +0200, Nicolas George wrote:
> Le septidi 7 fructidor, an CCXIV, Rich Felker a écrit :
> > If we really need to support systems without iconv,
> > we could make a fake iconv that first converts UTF-8 to UTF-32 then
> > uses the ISO C multibyte functions to convert to the local encoding
> > for display...
>
> Beware: there is no guarantee that the C wchar_t coding is the Unicode
> codepoint (which is the same as UTF-32).
There is if __STDC_ISO_10646__ is defined.
> You could decree that any system
> where it is not true is just braindead, and I would agree. But that makes
> Solaris¹, for example, braindead, and stopping to support it would require
> at least some thought; Solaris has a reasonably working iconv, though.
I would suggest using iconv first if it works, and only falling back
to such a hack if it doesn't work.
Rich
More information about the MPlayer-dev-eng
mailing list