Changed: Write UNIX EOL in UV files

This commit is contained in:
kervala 2016-10-22 16:50:31 +02:00
parent 8fe387eae3
commit 18e35134a0

View file

@ -477,7 +477,7 @@ int main(int argc, char **argv)
{ {
fmtName = fmtName.substr(0, fmtName.rfind('.')); fmtName = fmtName.substr(0, fmtName.rfind('.'));
fmtName += ".txt"; fmtName += ".txt";
FILE *f = nlfopen(fmtName, "wt"); FILE *f = nlfopen(fmtName, "wb");
if (f != NULL) if (f != NULL)
{ {
for (sint i = 0; i < mapSize; ++i) for (sint i = 0; i < mapSize; ++i)
@ -511,7 +511,7 @@ int main(int argc, char **argv)
// Write subset UV text file // Write subset UV text file
fmtName = fmtName.substr(0, fmtName.rfind('.')); fmtName = fmtName.substr(0, fmtName.rfind('.'));
fmtName += ".txt"; fmtName += ".txt";
FILE *f = nlfopen(fmtName, "wt"); FILE *f = nlfopen(fmtName, "wb");
if (f == NULL) if (f == NULL)
{ {