* gettext-runtime/src/envsubst.c (main): Assume setlocale exists.
* gettext-runtime/src/gettext.c (main): Likewise.
* gettext-runtime/src/ngettext.c (main): Likewise.
* gettext-tools/src/cldr-plurals.c (main): Likewise.
* gettext-tools/src/hostname.c (main): Likewise.
* gettext-tools/src/msgattrib.c (main): Likewise.
* gettext-tools/src/msgcat.c (main): Likewise.
* gettext-tools/src/msgcmp.c (main): Likewise.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msgconv.c (main): Likewise.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgexec.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msgfmt.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msginit.c (main, canonical_locale_charset, get_title):
Likewise.
* gettext-tools/src/msgmerge.c (main): Likewise.
* gettext-tools/src/msgunfmt.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/src/recode-sr-latin.c (main): Likewise.
* gettext-tools/src/urlget.c (main): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
* gettext-tools/tests/testlocale.c (main): Likewise.
* gettext-tools/tests/tstgettext.c (main): Likewise.
* gettext-tools/tests/tstngettext.c (main): Likewise.
* gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Don't test whether setlocale
exists.
-# intl.m4 serial 35 (gettext-0.19.9)
-dnl Copyright (C) 1995-2014, 2016-2018 Free Software Foundation, Inc.
+# intl.m4 serial 36 (gettext-0.19.9)
+dnl Copyright (C) 1995-2014, 2016-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
[Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
])
AC_CHECK_HEADERS([features.h stddef.h stdlib.h string.h])
- AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \
+ AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv \
snprintf strnlen uselocale wcslen wcsnlen mbrtowc wcrtomb])
dnl Use the _snprintf function only if it is declared (because on NetBSD it
/* Substitution of environment variables in shell format strings.
- Copyright (C) 2003-2007, 2012, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2003-2007, 2012, 2018-2019 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
/* Set program name for message texts. */
set_program_name (argv[0]);
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* gettext - retrieve text string from message catalog and print it.
- Copyright (C) 1995-1997, 2000-2007, 2012, 2015-2018 Free Software
+ Copyright (C) 1995-1997, 2000-2007, 2012, 2015-2019 Free Software
Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, May 1995.
/* Set program name for message texts. */
set_program_name (argv[0]);
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* ngettext - retrieve plural form string from message catalog and print it.
- Copyright (C) 1995-1997, 2000-2007, 2015-2018 Free Software Foundation, Inc.
+ Copyright (C) 1995-1997, 2000-2007, 2015-2019 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/* Set program name for message texts. */
set_program_name (argv[0]);
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Unicode CLDR plural rule parser and converter
- Copyright (C) 2015-2018 Free Software Foundation, Inc.
+ Copyright (C) 2015-2019 Free Software Foundation, Inc.
This file was written by Daiki Ueno <ueno@gnu.org>, 2015.
/* Set program name for messages. */
set_program_name (argv[0]);
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Display hostname in various forms.
- Copyright (C) 2001-2003, 2006-2007, 2012, 2015-2016, 2018 Free Software
+ Copyright (C) 2001-2003, 2006-2007, 2012, 2015-2016, 2018-2019 Free Software
Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Manipulates attributes of messages in translation catalogs.
- Copyright (C) 2001-2007, 2009-2010, 2012, 2015-2018 Free Software
+ Copyright (C) 2001-2007, 2009-2010, 2012, 2015-2019 Free Software
Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Concatenates several translation catalogs.
- Copyright (C) 2001-2007, 2009-2018 Free Software Foundation, Inc.
+ Copyright (C) 2001-2007, 2009-2019 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* GNU gettext - internationalization aids
- Copyright (C) 1995-1998, 2000-2010, 2012, 2015-2018 Free Software
+ Copyright (C) 1995-1998, 2000-2010, 2012, 2015-2019 Free Software
Foundation, Inc.
This file was written by Peter Miller <millerp@canb.auug.org.au>
error_print_progname = maybe_print_progname;
gram_max_allowed_errors = UINT_MAX;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* GNU gettext - internationalization aids
- Copyright (C) 1997-1998, 2000-2007, 2009-2018 Free Software Foundation, Inc.
+ Copyright (C) 1997-1998, 2000-2007, 2009-2019 Free Software Foundation, Inc.
This file was written by Peter Miller <millerp@canb.auug.org.au>
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Converts a translation catalog to a different character encoding.
- Copyright (C) 2001-2007, 2009-2010, 2012, 2015-2018 Free Software
+ Copyright (C) 2001-2007, 2009-2010, 2012, 2015-2019 Free Software
Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Creates an English translation catalog.
- Copyright (C) 2001-2007, 2009-2010, 2012, 2015-2018 Free Software
+ Copyright (C) 2001-2007, 2009-2010, 2012, 2015-2019 Free Software
Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Pass translations to a subprocess.
- Copyright (C) 2001-2018 Free Software Foundation, Inc.
+ Copyright (C) 2001-2019 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Edit translations using a subprocess.
- Copyright (C) 2001-2010, 2012, 2015-2018 Free Software Foundation, Inc.
+ Copyright (C) 2001-2010, 2012, 2015-2019 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Converts Uniforum style .po files to binary .mo files
- Copyright (C) 1995-1998, 2000-2007, 2009-2010, 2012, 2015-2018 Free Software
+ Copyright (C) 1995-1998, 2000-2007, 2009-2010, 2012, 2015-2019 Free Software
Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
error_one_per_line = 1;
exit_status = EXIT_SUCCESS;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Extract some translations of a translation catalog.
- Copyright (C) 2001-2007, 2009-2010, 2012, 2015-2018 Free Software
+ Copyright (C) 2001-2007, 2009-2010, 2012, 2015-2019 Free Software
Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Initializes a new PO file.
- Copyright (C) 2001-2018 Free Software Foundation, Inc.
+ Copyright (C) 2001-2019 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
xsetenv ("LC_ALL", locale, 1);
-#ifdef HAVE_SETLOCALE
if (setlocale (LC_ALL, "") == NULL)
/* Nonexistent locale. Use anything. */
charset = "";
else
-#endif
/* Get the locale's charset. */
charset = locale_charset ();
else
unsetenv ("LC_ALL");
-#ifdef HAVE_SETLOCALE
setlocale (LC_ALL, "");
-#endif
/* Canonicalize it. */
charset = po_charset_canonicalize (charset);
unsetenv ("LANGUAGE");
xsetenv ("OUTPUT_CHARSET", encoding, 1);
-#ifdef HAVE_SETLOCALE
if (setlocale (LC_ALL, "") == NULL)
/* Nonexistent locale. Use the English title. */
result = english;
else
-#endif
{
/* Fetch the translation. */
/* TRANSLATORS: "English" needs to be replaced by your language.
else
unsetenv ("OUTPUT_CHARSET");
-#ifdef HAVE_SETLOCALE
setlocale (LC_ALL, "");
-#endif
return result;
}
/* GNU gettext - internationalization aids
- Copyright (C) 1995-1998, 2000-2010, 2012, 2015-2018 Free Software
+ Copyright (C) 1995-1998, 2000-2010, 2012, 2015-2019 Free Software
Foundation, Inc.
This file was written by Peter Miller <millerp@canb.auug.org.au>
quiet = false;
gram_max_allowed_errors = UINT_MAX;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* msgunfmt - converts binary .mo files to Uniforum style .po files
- Copyright (C) 1995-1998, 2000-2007, 2009-2010, 2012, 2015-2018 Free Software
+ Copyright (C) 1995-1998, 2000-2007, 2009-2010, 2012, 2015-2019 Free Software
Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Remove, select or merge duplicate translations.
- Copyright (C) 2001-2007, 2009-2010, 2012, 2015-2018 Free Software
+ Copyright (C) 2001-2007, 2009-2010, 2012, 2015-2019 Free Software
Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Recode Serbian text from Cyrillic to Latin script.
- Copyright (C) 2006-2007, 2010, 2012, 2015-2018 Free Software Foundation,
+ Copyright (C) 2006-2007, 2010, 2012, 2015-2019 Free Software Foundation,
Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
/* Set program name for message texts. */
set_program_name (argv[0]);
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Get the contents of an URL.
- Copyright (C) 2001-2003, 2005-2010, 2012, 2015-2018 Free Software
+ Copyright (C) 2001-2003, 2005-2010, 2012, 2015-2019 Free Software
Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* Extracts strings from C source file to Uniforum style .po file.
- Copyright (C) 1995-1998, 2000-2016, 2018 Free Software Foundation, Inc.
+ Copyright (C) 1995-1998, 2000-2016, 2018-2019 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
This program is free software: you can redistribute it and/or modify
set_program_name (argv[0]);
error_print_progname = maybe_print_progname;
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
/* testlocale - test whether the locale given by the environment is installed.
- Copyright (C) 2003, 2006, 2015-2016 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2006, 2019 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
main (int argc, char *argv[])
{
/* This test must match the one in intl/localename.c. */
-#if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL
+#if defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL
if (setlocale (LC_ALL, "") == NULL)
/* Couldn't set locale. */
exit (77);
/* gettext - retrieve text string from message catalog and print it.
- Copyright (C) 1995-1997, 2000-2007, 2012, 2015-2018 Free Software
+ Copyright (C) 1995-1997, 2000-2007, 2012, 2015-2019 Free Software
Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, May 1995.
#include "propername.h"
#include "xsetenv.h"
-#define HAVE_SETLOCALE 1
/* Make sure we use the included libintl, not the system's one. */
#undef _LIBINTL_H
#include "libgnuintl.h"
/* Set program name for message texts. */
set_program_name (argv[0]);
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
usage (EXIT_FAILURE);
}
-#ifdef HAVE_SETLOCALE
if (environ_changed)
/* Set locale again via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Version information is requested. */
if (do_version)
/* ngettext - retrieve plural form strings from message catalog and print them.
- Copyright (C) 1995-1997, 2000-2007, 2012, 2015-2018 Free Software
+ Copyright (C) 1995-1997, 2000-2007, 2012, 2015-2019 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
#include "propername.h"
#include "xsetenv.h"
-#define HAVE_SETLOCALE 1
/* Make sure we use the included libintl, not the system's one. */
#undef _LIBINTL_H
#include "libgnuintl.h"
/* Set program name for message texts. */
set_program_name (argv[0]);
-#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
usage (EXIT_FAILURE);
}
-#ifdef HAVE_SETLOCALE
if (environ_changed)
/* Set locale again via LC_ALL. */
setlocale (LC_ALL, "");
-#endif
/* Version information is requested. */
if (do_version)
cfg["HAVE_MEMMOVE"] = 1;
cfg["HAVE_MEMSET"] = 1;
cfg["HAVE_PUTENV"] = 1;
- cfg["HAVE_SETLOCALE"] = 1;
cfg["HAVE_STRCHR"] = 1;
cfg["HAVE_STRCSPN"] = 1;
cfg["HAVE_STRDUP"] = 1;