/* Fake setlocale - platform independent, for testing purposes.
- Copyright (C) 2001-2002 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 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
#include <locale.h>
#include <string.h>
+/* Make this override available independently of possible overrides in
+ libgnuintl.h or locale.h.
+ Note: On platforms where _nl_locale_name_posix invokes setlocale_null, this
+ override *must* be called 'setlocale'. */
+#undef setlocale
+
/* Return string representation of locale CATEGORY. */
static const char *
category_to_name (int category)