fixup! Upstream Links 2.25
This commit is contained in:
parent
9d19f98631
commit
a237f22e3c
|
@ -2,6 +2,7 @@
|
|||
* (c) 2002 Mikulas Patocka
|
||||
* This file is a part of the Links program, released under GPL.
|
||||
*/
|
||||
#include <langinfo.h>
|
||||
|
||||
#include "links.h"
|
||||
|
||||
|
@ -130,6 +131,8 @@ int get_default_charset(void)
|
|||
lang = cast_uchar getenv("LC_CTYPE");
|
||||
if (!lang)
|
||||
lang = cast_uchar getenv("LANG");
|
||||
if (!lang)
|
||||
lang = cast_uchar nl_langinfo(CODESET);
|
||||
if (!lang) {
|
||||
i = 0;
|
||||
goto ret_i;
|
||||
|
|
Loading…
Reference in New Issue