ron7 has asked for the wisdom of the Perl Monks concerning the following question:
It runs fine for English speaking countries, but is now starting to be used in France and Germany where extended char set chars in the file paths are causing difficulty (of the file not found variety, even though the file was selected from a file browser). It does not just use simple "open" statements; there are a lot of -f, -d etc, plus XML::Simple and other API's which take a filename as an argument (would love to use XML::LibXML instead, but AS 5.8 defeats me again because there is no distro available for OSX i386 and PPC).
For example, a path like "nfo_test/Un monde à nous (2007)" causes a -d to say it does not exist. Converting the name to a single byte string, works for -d, but not for -f (go figure). I'd like to internationalize the app to at least handle 'decorations' in French, German, and other Romance language countries (let's forget Chinese/Japanese, etc), though reading leads me to suspect this may not be possible. It already handles utf8 chars in text strings correctly. It's just file paths causing trouble. Suggestions most welcome. Just in case, the source is at http://itee.uq.edu.au/~chernich/tagsuite.html
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File path internationalization
by Jim (Curate) on Dec 26, 2010 at 07:28 UTC | |
|
Re: File path internationalization
by Marshall (Canon) on Dec 26, 2010 at 05:15 UTC | |
by ron7 (Beadle) on Dec 26, 2010 at 08:06 UTC | |
|
Re: File path internationalization
by Anonymous Monk on Dec 26, 2010 at 04:49 UTC | |
by ron7 (Beadle) on Dec 26, 2010 at 08:20 UTC | |
by Khariton (Sexton) on Dec 26, 2010 at 12:54 UTC |