[xml] Libxml changes for Macintosh Carbon libraries. (Patch)



Title: Libxml changes for Macintosh Carbon libraries. (Patch)

I found that I needed libxml2 to work on the Macintosh in Carbon, not just in OS X. The product did not work correctly without making changes to the source code.  The problem was how file paths were treated. In a Mac OS X only application, the file paths were POSIX and so it worked correctly with libxml. Within a Carbon application the file paths used the Mac file system (A colon is used as the separator).  Libxml internally depends on a POSIX style path. My solution was to change the path to a Mac style path just before the file path is used when calling file IO functionality.

There were other problems as well. I made a few changes to the code, and I hope I used the correct conditionals.

Below is a list of changes and the files that I made the changes into.

TRIOSTR.C:

XMLIO.C:

CONFIG.H:

We here at FileNet would like these changes to go into the next version of Libxml if at all possible.  We have not been upgrading our libxml as this can take up to 2 days of work due to the changes we have made.

Cameron C. Johnson

Software Developer

FileNet Corporation

www.FileNet.com

ccjohnson FileNet com

Phone: (780) 433-3690 ext. 2225 (phone)

Fax: (780) 437-4381 (fax)

CONFIDENTIAL NOTICE: The contents of this message, including any attachments, are confidential and are intended solely for the use of the person or entity to whom the message was addressed. If you are not the intended recipient of this message, please be advised that any dissemination, distribution, or use of the contents of this message is strictly prohibited. If you received this message in error, please notify the sender. Please also permanently delete all copies of the original message and any attached documentation.  Thank you.



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