2011-12-17 13:17:57 +00:00
|
|
|
Index: src/cmscgats.c
|
|
|
|
===================================================================
|
2011-11-24 07:27:02 +00:00
|
|
|
--- src/cmscgats.c.orig
|
|
|
|
+++ src/cmscgats.c
|
2011-12-17 13:17:57 +00:00
|
|
|
@@ -836,7 +836,7 @@ void InSymbol(cmsIT8* it8)
|
2011-11-24 07:27:02 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
- FileNest->Stream = fopen(FileNest->FileName, "rt");
|
|
|
|
+ FileNest->Stream = fopen(FileNest->FileName, "rte");
|
|
|
|
if (FileNest->Stream == NULL) {
|
|
|
|
|
|
|
|
SynError(it8, "File %s not found", FileNest->FileName);
|
2011-12-17 13:17:57 +00:00
|
|
|
@@ -1670,7 +1670,7 @@ cmsBool CMSEXPORT cmsIT8SaveToFile(cmsHA
|
2011-11-24 07:27:02 +00:00
|
|
|
|
|
|
|
memset(&sd, 0, sizeof(sd));
|
|
|
|
|
|
|
|
- sd.stream = fopen(cFileName, "wt");
|
|
|
|
+ sd.stream = fopen(cFileName, "wte");
|
|
|
|
if (!sd.stream) return FALSE;
|
|
|
|
|
2011-12-17 13:17:57 +00:00
|
|
|
for (i=0; i < it8 ->TablesCount; i++) {
|
|
|
|
@@ -2178,7 +2178,7 @@ cmsBool IsMyFile(const char* FileName)
|
2011-11-24 07:27:02 +00:00
|
|
|
cmsUInt32Number Size;
|
|
|
|
cmsUInt8Number Ptr[133];
|
|
|
|
|
|
|
|
- fp = fopen(FileName, "rt");
|
|
|
|
+ fp = fopen(FileName, "rte");
|
|
|
|
if (!fp) {
|
|
|
|
cmsSignalError(0, cmsERROR_FILE, "File '%s' not found", FileName);
|
|
|
|
return FALSE;
|
2011-12-17 13:17:57 +00:00
|
|
|
@@ -2256,7 +2256,7 @@ cmsHANDLE CMSEXPORT cmsIT8LoadFromFile(
|
2011-11-24 07:27:02 +00:00
|
|
|
if (!hIT8) return NULL;
|
|
|
|
|
|
|
|
|
|
|
|
- it8 ->FileStack[0]->Stream = fopen(cFileName, "rt");
|
|
|
|
+ it8 ->FileStack[0]->Stream = fopen(cFileName, "rte");
|
|
|
|
|
|
|
|
if (!it8 ->FileStack[0]->Stream) {
|
|
|
|
cmsIT8Free(hIT8);
|