Changeset 1307
- Timestamp:
- Mar 16, 2004, 2:51:34 AM (21 years ago)
- Location:
- trunk/src/emx/src/lib
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/bsd/nls/msgcat.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1306 r1307 55 55 56 56 #include "msgcat.h" 57 #ifndef __EMX__ 57 58 #include "../locale/setlocale.h" /* for ENCODING_LEN */ 58 59 #else 60 #define ENCODING_LEN 31 /* bird: wonder if this is allright. */ 61 #endif 62 63 #ifndef __EMX__ 59 64 #define _DEFAULT_NLS_PATH "/usr/share/nls/%L/%N.cat:/usr/share/nls/%N/%L:/usr/local/share/nls/%L/%N.cat:/usr/local/share/nls/%N/%L" 65 #else /* bird: we use a different separator character. */ 66 #define _DEFAULT_NLS_PATH "/usr/share/nls/%L/%N.cat;/usr/share/nls/%N/%L;/usr/local/share/nls/%L/%N.cat;/usr/local/share/nls/%N/%L" 67 #endif 60 68 61 69 #define TRUE 1 … … 65 73 #define NLRETERR(errc) { errno = errc; return (NLERR); } 66 74 75 #ifndef __EMX__ 67 76 static nl_catd loadCat(); 68 77 static int loadSet(); 69 78 static void __nls_free_resources(); 79 #else 80 static nl_catd loadCat(__const char *); 81 static int loadSet(MCCatT*, MCSetT*); 82 static void __nls_free_resources(MCCatT*, int); 83 #endif 70 84 71 85 nl_catd … … 112 126 } 113 127 128 #ifndef __EMX__ 114 129 if ((nlspath = getenv("NLSPATH")) == NULL || issetugid()) 130 #else 131 if ((nlspath = getenv("NLSPATH")) == NULL) 132 #endif 115 133 nlspath = _DEFAULT_NLS_PATH; 116 134 … … 122 140 } 123 141 142 #ifndef __EMX__ 124 143 while ((nlspath = strsep(&cptr, ":")) != NULL) { 144 #else 145 while ((nlspath = strsep(&cptr, ";")) != NULL) { 146 #endif 125 147 pathP = path; 126 148 if (*nlspath) { … … 366 388 cat->loadType = MCLoadBySet; 367 389 390 #ifndef __EMX__ 368 391 if ((cat->fp = fopen(catpath, "r")) == NULL) { 392 #else 393 if ((cat->fp = fopen(catpath, "rb")) == NULL) { 394 #endif 369 395 saverr = errno; 370 396 free(cat); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/libc.def
-
Property cvs2svn:cvs-rev
changed from
1.51
to1.52
r1306 r1307 1090 1090 "_warnc" @1113 1091 1091 "_warnx" @1114 1092 1092 "_catclose" @1115 1093 "_catgets" @1116 1094 "_catopen" @1117 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.