Use fprintf and %lc to output a wchar_t.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 29 Nov 2008 09:11:07 +0000 (09:11 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 29 Nov 2008 09:11:07 +0000 (09:11 +0000)
[r24135]

diagnostic.c

index eacf085..babdf9d 100644 (file)
@@ -68,7 +68,7 @@ static void diagnosticvf(const char *const fmt, va_list ap)
 
                                case 'C': {
                                        const wint_t val = va_arg(ap, wint_t);
-                                       fputwc(val, stderr);
+                                       fprintf(stderr, "%lc", val);
                                        break;
                                }