2 ===================================================================
3 --- src/cmscgats.c.orig
5 @@ -836,7 +836,7 @@ void InSymbol(cmsIT8* it8)
9 - FileNest->Stream = fopen(FileNest->FileName, "rt");
10 + FileNest->Stream = fopen(FileNest->FileName, "rte");
11 if (FileNest->Stream == NULL) {
13 SynError(it8, "File %s not found", FileNest->FileName);
14 @@ -1670,7 +1670,7 @@ cmsBool CMSEXPORT cmsIT8SaveToFile(cmsHA
16 memset(&sd, 0, sizeof(sd));
18 - sd.stream = fopen(cFileName, "wt");
19 + sd.stream = fopen(cFileName, "wte");
20 if (!sd.stream) return FALSE;
22 for (i=0; i < it8 ->TablesCount; i++) {
23 @@ -2178,7 +2178,7 @@ cmsBool IsMyFile(const char* FileName)
25 cmsUInt8Number Ptr[133];
27 - fp = fopen(FileName, "rt");
28 + fp = fopen(FileName, "rte");
30 cmsSignalError(0, cmsERROR_FILE, "File '%s' not found", FileName);
32 @@ -2256,7 +2256,7 @@ cmsHANDLE CMSEXPORT cmsIT8LoadFromFile(
33 if (!hIT8) return NULL;
36 - it8 ->FileStack[0]->Stream = fopen(cFileName, "rt");
37 + it8 ->FileStack[0]->Stream = fopen(cFileName, "rte");
39 if (!it8 ->FileStack[0]->Stream) {