Debian Codegraph @

debian/patches/utf-8-init

raw
1 C.UTF-8 is a known UTF-8 locale on Debian
2
3 --- a/src/speak.cpp
4 +++ b/src/speak.cpp
5 @@ -427,6 +427,7 @@ static int initialise(void)
6 #else
7 if(setlocale(LC_CTYPE,"en_US.UTF-8") == NULL)
8 {
9 + if(setlocale(LC_CTYPE,"C.UTF-8") == NULL)
10 if(setlocale(LC_CTYPE,"UTF-8") == NULL)
11 setlocale(LC_CTYPE,"");
12 }
13 --- a/src/speak_lib.cpp
14 +++ b/src/speak_lib.cpp
15 @@ -780,6 +780,7 @@ ENTER("espeak_Initialize");
16 #else
17 if(setlocale(LC_CTYPE,"C.UTF-8") == NULL)
18 {
19 + if(setlocale(LC_CTYPE,"C.UTF-8") == NULL)
20 if(setlocale(LC_CTYPE,"UTF-8") == NULL)
21 if(setlocale(LC_CTYPE,"en_US.UTF-8") == NULL)
22 setlocale(LC_CTYPE,"");