fixup! Upstream Links 2.25

This commit is contained in:
Juhani Krekelä 2022-02-17 01:58:30 +02:00
parent 9d19f98631
commit a237f22e3c
2 changed files with 3 additions and 8 deletions

View File

@ -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;

View File

@ -3434,14 +3434,6 @@ int os_default_charset(void)
return 0;
}
// PATCH: Always use UTF-8 instead of language-specific terminal charsets
#elif defined(__sortix__)
int os_default_charset(void)
{
return utf8_table;
}
#elif !defined(DOS)
int os_default_charset(void)