Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | fix writing to stderr console, last commit broke that. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | eclipse-project |
| Files: | files | file ages | folders |
| SHA1: |
b4bab791fc54dcd1b5fb3ab82c60bbc4 |
| User & Date: | jan.nijtmans 2012-09-05 09:00:51.562 |
Context
|
2012-09-05
| ||
| 09:05 | superflueous semicolon. check-in: 6f3b0f3445 user: jan.nijtmans tags: eclipse-project | |
| 09:00 | fix writing to stderr console, last commit broke that. check-in: b4bab791fc user: jan.nijtmans tags: eclipse-project | |
| 08:15 | write unicode to console, when possible. check-in: 7fd74e72f8 user: jan.nijtmans tags: eclipse-project | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
1148 1149 1150 1151 1152 1153 1154 |
}
nChar = MultiByteToWideChar(CP_UTF8, 0, zUtf8, nByte, zUnicode, nChar);
if( nChar==0 ){
free(zUnicode);
return 0;
}
zUnicode[nChar] = '\0';;
| | | 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 |
}
nChar = MultiByteToWideChar(CP_UTF8, 0, zUtf8, nByte, zUnicode, nChar);
if( nChar==0 ){
free(zUnicode);
return 0;
}
zUnicode[nChar] = '\0';;
WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE - toStdErr), zUnicode, nChar, &dummy, 0);
return nChar;
#else
return -1; /* No-op on unix */
#endif
}
/*
|
| ︙ | ︙ |