parent
9a928b9ff4
commit
abe2bacbf9
1 changed files with 1 additions and 1 deletions
2
lolcat.c
2
lolcat.c
|
|
@ -138,7 +138,7 @@ int main(int argc, char** argv)
|
|||
inputs_end = inputs + 1;
|
||||
}
|
||||
|
||||
if (force_locale)
|
||||
if (force_locale && !strstr(getenv("LANG"), "UTF-8"))
|
||||
setlocale(LC_ALL, "C.UTF-8");
|
||||
else
|
||||
setlocale(LC_ALL, "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue