Re: Locale Encoding & Filenames

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]>
Newsgroups gmane.comp.multimedia.dvdauthor.user
Message-ID <[email protected]>
David Huang wrote:

> Which filenames are we talking about? Filenames specified in the XML
 > file, filenames specified on the commandline, or both?

Previously, filenames in the XML file would be converted to locale encoding.

 > Filenames specified on the commandline should be assumed to use the
 > current locale encoding.

Actually, they were always used as is, and that hasn’t changed.

> Filenames  in the XML should be assumed to be the XML file's encoding
 > (which, if not specified, is UTF-8).

libxml2 was always returning strings in UTF-8 encoding, regardless of 
what the original file contents might have been. DVDAuthor would go 
through an extra step of converting them to the locale encoding. That 
step is now a no-op, unless you build DVDAuthor with the 
-enable-localize-filenames option.

> What if someone doesn't feel any need to change? I understand that
 > EUC-JP is still very popular in Japan.

That’s why I provided that build option. The way I see it, there should 
be a distro-wide policy: either all applications treat filenames as 
UTF8-encoded, or not. There should not be a mixture where some apps do 
and some apps don’t. Hence there should be no configuration option to 
control this; the code should simply be built that way.

 > You want someone to rename their files to be compatible with dvdauthor,
 > and incompatible with all the other applications they use?

What other applications would be doing locale conversions on filenames?

> Have you actually tried your change under Windows?

I have no access to Microsoft Windows.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Dvdauthor-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dvdauthor-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.