| 461 | */ |
| 462 | #if defined(_WIN32) || defined(WIN32) |
| 463 | void utf8_printf(FILE *out, const char *zFormat, ...){ |
| 464 | va_list ap; |
| 465 | va_start(ap, zFormat); |
| 466 | if( stdout_is_console && (out==stdout || out==stderr) ){ |
| 467 | char *z1 = sqlite3_vmprintf(zFormat, ap); |
| 468 | char *z2 = sqlite3_win32_utf8_to_mbcs_v2(z1, 0); |
| 469 | sqlite3_free(z1); |
| 470 | fputs(z2, out); |
| 471 | sqlite3_free(z2); |
| 472 | }else{ |
| 473 | vfprintf(out, zFormat, ap); |
| 474 | } |
| 475 | va_end(ap); |
| 476 | } |
| 477 | #elif !defined(utf8_printf) |
| 478 | # define utf8_printf fprintf |
| 479 | #endif |
no outgoing calls
no test coverage detected