8000 bpo-33648: Remove PY_WARN_ON_C_LOCALE (GH-7114) · python/cpython@b91a3a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b91a3a0

Browse files
grimreapermethane
authored andcommitted
bpo-33648: Remove PY_WARN_ON_C_LOCALE (GH-7114)
This code does not appear to be used anywhere in the python code base. The use was removed in eb81795.
1 parent 31b50b8 commit b91a3a0

File tree

5 files changed

+3
-47
lines changed

5 files changed

+3
-47
lines changed

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ David Abrahams
1818
Marc Abramowitz
1919
Eldar Abusalimov
2020
Ron Adam
21+
Eitan Adler
2122
Anton Afanasyev
2223
Ali Afshar
2324
Nitika Agarwal
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The --with-c-locale-warning configuration flag has been removed. It has had
2+
no effect for about a year.

configure

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,6 @@ enable_ipv6
829829
with_doc_strings
830830
with_pymalloc
831831
with_c_locale_coercion
832-
with_c_locale_warning
833832
with_valgrind
834833
with_dtrace
835834
with_libm
@@ -1523,9 +1522,6 @@ Optional Packages:
15231522
--with(out)-c-locale-coercion
15241523
disable/enable C locale coercion to a UTF-8 based
15251524
locale
1526-
--with(out)-c-locale-warning
1527-
disable/enable locale compatibility warning in the C
1528-
locale
15291525
--with-valgrind Enable Valgrind support
15301526
--with(out)-dtrace disable/enable DTrace support
15311527
--with-libm=STRING math library
@@ -11046,29 +11042,6 @@ fi
1104611042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
1104711043
$as_echo "$with_c_locale_coercion" >&6; }
1104811044

11049-
# Check for --with-c-locale-warning
11050-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-warning" >&5
11051-
$as_echo_n "checking for --with-c-locale-warning... " >&6; }
11052-
11053-
# Check whether --with-c-locale-warning was given.
11054-
if test "${with_c_locale_warning+set}" = set; then :
11055-
withval=$with_c_locale_warning;
11056-
fi
11057-
11058-
11059-
if test -z "$with_c_locale_warning"
11060-
then
11061-
with_c_locale_warning="yes"
11062-
fi
11063-
if test "$with_c_locale_warning" != "no"
11064-
then
11065-
11066-
$as_echo "#define PY_WARN_ON_C_LOCALE 1" >>confdefs.h
11067-
11068-
fi
11069-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_warning" >&5
11070-
$as_echo "$with_c_locale_warning" >&6; }
11071-
1107211045
# Check for Valgrind support
1107311046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
1107411047
$as_echo_n "checking for --with-valgrind... " >&6; }

configure.ac

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3319,23 +3319,6 @@ then
33193319
fi
33203320
AC_MSG_RESULT($with_c_locale_coercion)
33213321

3322-
# Check for --with-c-locale-warning
3323-
AC_MSG_CHECKING(for --with-c-locale-warning)
3324-
AC_ARG_WITH(c-locale-warning,
3325-
AS_HELP_STRING([--with(out)-c-locale-warning],
3326-
[disable/enable locale compatibility warning in the C locale]))
3327-
3328-
if test -z "$with_c_locale_warning"
3329-
then
3330-
with_c_locale_warning="yes"
3331-
fi
3332-
if test "$with_c_locale_warning" != "no"
3333-
then
3334-
AC_DEFINE(PY_WARN_ON_C_LOCALE, 1,
3335-
[Define to emit a locale compatibility warning in the C locale])
3336-
fi
3337-
AC_MSG_RESULT($with_c_locale_warning)
3338-
33393322
# Check for Valgrind support
33403323
AC_MSG_CHECKING([for --with-valgrind])
33413324
AC_ARG_WITH([valgrind],

pyconfig.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,9 +1327,6 @@
13271327
/* Cipher suite string for PY_SSL_DEFAULT_CIPHERS=0 */
13281328
#undef PY_SSL_DEFAULT_CIPHER_STRING
13291329

1330-
/* Define to emit a locale compatibility warning in the C locale */
1331-
#undef PY_WARN_ON_C_LOCALE
1332-
13331330
/* Define if you want to build an interpreter with many run-time checks. */
13341331
#undef Py_DEBUG
13351332

0 commit comments

Comments
 (0)
0