diff options
author | Stéphane Michaut <smichaut@axway.com> | 2017-08-28 14:30:43 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2017-08-28 14:30:43 +0200 |
commit | 454e397eb7dd0fe219fa681eeadfaf2a64a3aeec (patch) | |
tree | 8a6ae17944eb76245214d484769acef3ab041579 /xmlIO.c | |
parent | 3aca7f31cb9901dc3af449e08dda647898bfc1fe (diff) | |
download | libxml2-454e397eb7dd0fe219fa681eeadfaf2a64a3aeec.tar.gz |
Porting libxml2 on zOS encoding of code
First set of patches for zOS
- entities.c parser.c tree.c xmlschemas.c xmlschemastypes.c xpath.c xpointer.c:
ask conversion of code to ISO Latin 1 to avoid having the compiler assume
EBCDIC codepoint for characters.
- xmlmodule.c: make sure we have support for modules
- xmlIO.c: zOS path names are special avoid dsome of the expectstions from
Unix/Windows
Diffstat (limited to 'xmlIO.c')
-rw-r--r-- | xmlIO.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -926,8 +926,11 @@ xmlFileOpen_real (const char *filename) { #endif } + /* Do not check DDNAME on zOS ! */ +#if !defined(__MVS__) if (!xmlCheckFilename(path)) return(NULL); +#endif #if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__) fd = xmlWrapOpen(path, 0); @@ -1004,11 +1007,13 @@ xmlFileOpenW (const char *filename) { #if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__) fd = xmlWrapOpen(path, 1); +#elif(__MVS__) + fd = fopen(path, "w"); #else - fd = fopen(path, "wb"); + fd = fopen(path, "wb"); #endif /* WIN32 */ - if (fd == NULL) xmlIOErr(0, path); + if (fd == NULL) xmlIOErr(0, path); return((void *) fd); } #endif /* LIBXML_OUTPUT_ENABLED */ |