| | @@ -806,27 +806,11 @@ |
| 806 | 806 | ** On windows, transform the output into the current terminal encoding |
| 807 | 807 | ** if the output is going to the screen. If output is redirected into |
| 808 | 808 | ** a file, no translation occurs. No translation ever occurs on unix. |
| 809 | 809 | */ |
| 810 | 810 | void fossil_puts(const char *z, int toStdErr){ |
| 811 | | -#if defined(_WIN32) |
| 812 | | - extern char *sqlite3_win32_utf8_to_mbcs(const char*); |
| 813 | | - static int once = 1; |
| 814 | | - static int istty[2]; |
| 815 | | - char *zToFree = 0; |
| 816 | | - if( once ){ |
| 817 | | - istty[0] = _isatty(fileno(stdout)); |
| 818 | | - istty[1] = _isatty(fileno(stderr)); |
| 819 | | - once = 0; |
| 820 | | - } |
| 821 | | - assert( toStdErr==0 || toStdErr==1 ); |
| 822 | | - if( istty[toStdErr] ) z = zToFree = sqlite3_win32_utf8_to_mbcs(z); |
| 823 | | - fwrite(z, 1, strlen(z), toStdErr ? stderr : stdout); |
| 824 | | - free(zToFree); |
| 825 | | -#else |
| 826 | | - fwrite(z, 1, strlen(z), toStdErr ? stderr : stdout); |
| 827 | | -#endif |
| 811 | + fwrite(z, 1, strlen(z), toStdErr ? stderr : stdout); |
| 828 | 812 | } |
| 829 | 813 | |
| 830 | 814 | /* |
| 831 | 815 | ** Write output for user consumption. If g.cgiOutput is enabled, then |
| 832 | 816 | ** send the output as part of the CGI reply. If g.cgiOutput is false, |
| 833 | 817 | |