diff --git a/config2.h.in b/config2.h.in index 707af844..5c04c130 100644 --- a/config2.h.in +++ b/config2.h.in @@ -512,9 +512,6 @@ /* Define to 1 if you have the `socket' library (-lsocket). */ #mesondefine HAVE_LIBSOCKET -/* Define to 1 if you have the header file. */ -#mesondefine HAVE_LOCALE_H - /* Define if you have long long */ #mesondefine HAVE_LONG_LONG diff --git a/meson.build b/meson.build index b9cf5043..d6b7c4dc 100644 --- a/meson.build +++ b/meson.build @@ -190,7 +190,6 @@ conf_data.set10('HAVE_NET_IF_H', compiler.has_header('net/if.h')) conf_data.set10('HAVE_STDINT_H', compiler.has_header('stdint.h')) conf_data.set10('HAVE_INTTYPES_H', compiler.has_header('inttypes.h')) -conf_data.set10('HAVE_LOCALE_H', compiler.has_header('locale.h')) conf_data.set10('HAVE_PWD_H', compiler.has_header('pwd.h')) conf_data.set10('HAVE_TERMIOS_H', compiler.has_header('termios.h')) conf_data.set10('HAVE_POLL_H', compiler.has_header('poll.h')) diff --git a/src/osdep/osdep.c b/src/osdep/osdep.c index ddd0312d..b9093f61 100644 --- a/src/osdep/osdep.c +++ b/src/osdep/osdep.c @@ -51,13 +51,7 @@ #include #endif -#ifdef HAVE_LOCALE_H -/* For the sake of SunOS, keep this away from files including - * intl/gettext/libintl.h because includes system which - * either includes system gettext header or contains gettext function - * declarations. */ #include -#endif #ifdef HAVE_X11 #include @@ -862,9 +856,7 @@ get_input_handle(void) void init_osdep(void) { -#ifdef HAVE_LOCALE_H setlocale(LC_ALL, ""); -#endif } #endif diff --git a/src/osdep/win32/win32.c b/src/osdep/win32/win32.c index 5ac33962..02b18340 100644 --- a/src/osdep/win32/win32.c +++ b/src/osdep/win32/win32.c @@ -19,9 +19,7 @@ #include #include #include -#ifdef HAVE_LOCALE_H #include -#endif #include "elinks.h" @@ -45,9 +43,7 @@ init_osdep(void) exit(-1); } #endif -#ifdef HAVE_LOCALE_H setlocale(LC_ALL, ""); -#endif #ifdef CONFIG_IDN { char buf[60];