Re: [xml] [PATCH] support long path names on WNT

On Wed, Aug 22, 2012 at 07:14:48PM +0200, Michael Stahl wrote:
hi all,

so we've got this patch to libxml2 2.7.6 in the LibreOffice code base,
inherited from OOo.  it fixes a definite problem, which is that Windows
has a rather low maximum path length restriction, and there is a special
trick on NT whereby path names can be prefixed with "\\?\", in which
case the maximum length is 32k, which ought to be sufficient even for
bloated office suites :)

i'll attach the patch to the xmlCanonicPath function.  note that i
didn't write this and am by no means an expert on either Microsoftean
platforms or libxml so maybe it's not the best way to do it.  well, the
strlen call in there looks superfluous to me.

  Yeah, I finally applied this. Those paths can't be converted to
URIs anyway so even if it's weird let's keep it. i cleaned up the code
and pushed this,

  thanks !


Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

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