Re: [xml] Default Catalog On Windows, Deprecated API



On Mon, Jun 14, 2004 at 12:25:29PM -0600, Mark_Vakoc peoplesoft com wrote:
I don't know how much that matters -- down the road libxml2 uses the C API
(fopen. etc) which takes a const char* and does not support UTF-8 encoded
filenames anyways, at least not the ms runtime, so even if you used the
wide version of GetModuleFileNameW and converted it to UTF-8 the end result
is that the C file apis would fail anywyas.  The only place that would
benefit from that are custum i/o handlers that may properly use UTF-8
encoded paths.

  Yeah, for paths it's an Operating System only issue. If the
C libraries APIs were (const char * + encoding) then libxml2
would have to handle encoding at those level, but as it is
filepaths don't have an encoding, it's just a zero terminated
array of bytes and we can't do anything at that level IMHO.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]