X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/b6d8272551435098c716c546a5201206517e5da9..869ddfc6b23c68ccedf627778460ac91a9b1b1db:/test-wchar.c diff --git a/test-wchar.c b/test-wchar.c index a096705e..32962d9f 100644 --- a/test-wchar.c +++ b/test-wchar.c @@ -1,4 +1,4 @@ -/* $Id: test-wchar.c,v 1.3 2015/10/06 18:32:20 schwarze Exp $ */ +/* $Id: test-wchar.c,v 1.4 2016/07/31 09:29:13 schwarze Exp $ */ /* * Copyright (c) 2014 Ingo Schwarze * @@ -35,9 +35,9 @@ main(void) return 1; } - if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) { - fputs("setlocale(LC_CTYPE, \"en_US.UTF-8\") failed\n", - stderr); + if (setlocale(LC_CTYPE, UTF8_LOCALE) == NULL) { + fprintf(stderr, "setlocale(LC_CTYPE, \"%s\") failed\n", + UTF8_LOCALE); return 1; }