On Sat, 2003-12-27 at 05:28, Jon A.Cruz wrote:
To be honest, I really think this isn't our problem to fix. The best we can do is use UTF-8 internally, and call open() and friends with the string converted to LC_CTYPE.
Or glib's g_filename_to_utf8() and g_filename_from_utf8() functions might be appropriate.
g_filename_from_uri() and g_filename_to_uri also look very promising.
Ooh, those sound ideal. Seems like I never stop learning about cool new stuff in glib ^_^
Hmmm... speaking of URI's... Looking at some existing solutions might be handy:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URI.html http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html
(the thing to look at in File is how it can be used to work and manipulate paths instead of using bare string manipulation)
Indeed, I've been looking at these already.
-mental