Re: [xml] Problems with file names in UTF-8 on Windows

On Wed, Aug 30, 2006 at 02:09:11PM +0200, Roland Schwingel wrote:

Daniel Veillard <veillard redhat com> wrote on 21.08.2006 10:30:06:
On Mon, Aug 21, 2006 at 10:18:26AM +0200, Roland Schwingel wrote:
At present I am damned overloaded. I will come back to your messages 

  Thanks, hopefully within a couple of weeks because pushing a new 
version out would make sense around the end of the month.

Here is the reworked patch...
What has changed. It operates now in "paranoid" mode...
1) Handling of msvcrt moved (as requested by Daniel) to an own static 
   which is additionally secured against threadingproblems with a mutex.
2) There is an additional check against the Operating system version to
   force win9x to use ascii mode.
3) Added the MB_ERR_INVALID_CHARS to MultiByteToWideChar() calls, 
   even IMHO not needed, because if it would produce incorrect wchars
   a subsequent call operating on that result would fail anyway, forcing
   windows path to fallback to ascii mode.

The patch is again made against vanilla libxml2 2.6.26

  Okay, this seems to answer all points raised in the past, and is
changing windows only code (except for the duplicate function removal),
so I applied it and commited it to CVS.

    thanks a lot !


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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