Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | superflueous semicolon. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | eclipse-project |
Files: | files | file ages | folders |
SHA1: |
6f3b0f344510f684b5b73a3925c6d63f |
User & Date: | jan.nijtmans 2012-09-05 09:05:26.810 |
Context
2012-09-05
| ||
09:26 | be smarter about istty static initialization ... (check-in: 5d9f57a7 user: jan.nijtmans tags: eclipse-project) | |
09:05 | superflueous semicolon. ... (check-in: 6f3b0f34 user: jan.nijtmans tags: eclipse-project) | |
09:00 | fix writing to stderr console, last commit broke that. ... (check-in: b4bab791 user: jan.nijtmans tags: eclipse-project) | |
Changes
Changes to src/file.c.
︙ | ︙ | |||
1116 1117 1118 1119 1120 1121 1122 | #endif return zValue; } /* ** Display UTF8 on the console. Return the number of ** Characters written. If stdout or stderr is redirected | | | 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 | #endif return zValue; } /* ** Display UTF8 on the console. Return the number of ** Characters written. If stdout or stderr is redirected ** to a file, -1 is returned and nothing is written ** to the console. */ int fossil_utf8_to_console(const char *zUtf8, int nByte, int toStdErr){ #ifdef _WIN32 int nChar; wchar_t *zUnicode; /* Unicode version of zUtf8 */ DWORD dummy; |
︙ | ︙ | |||
1147 1148 1149 1150 1151 1152 1153 | return 0; } nChar = MultiByteToWideChar(CP_UTF8, 0, zUtf8, nByte, zUnicode, nChar); if( nChar==0 ){ free(zUnicode); return 0; } | | | 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 | return 0; } 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 } |
︙ | ︙ |