Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
da29f742
Commit
da29f742
authored
Apr 19, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #546194: Check constants individually. Fixes 534143 on OpenBSD.
Will backport to 2.2.
parent
49a042a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
Modules/_localemodule.c
Modules/_localemodule.c
+19
-2
No files found.
Modules/_localemodule.c
View file @
da29f742
...
...
@@ -482,19 +482,36 @@ struct langinfo_constant{
LANGINFO
(
AM_STR
),
LANGINFO
(
PM_STR
),
/* The following constants are available only with XPG4. AIX 3.2. only has
CODESET. */
/* The following constants are available only with XPG4, but...
AIX 3.2. only has CODESET.
OpenBSD doesn't have CODESET but has T_FMT_AMPM, and doesn't have
a few of the others.
Solution: ifdef-test them all. */
#ifdef CODESET
LANGINFO
(
CODESET
),
#endif
#ifdef T_FMT_AMPM
LANGINFO
(
T_FMT_AMPM
),
#endif
#ifdef ERA
LANGINFO
(
ERA
),
#endif
#ifdef ERA_D_FMT
LANGINFO
(
ERA_D_FMT
),
#endif
#ifdef ERA_D_T_FMT
LANGINFO
(
ERA_D_T_FMT
),
#endif
#ifdef ERA_T_FMT
LANGINFO
(
ERA_T_FMT
),
#endif
#ifdef ALT_DIGITS
LANGINFO
(
ALT_DIGITS
),
#endif
#ifdef YESEXPR
LANGINFO
(
YESEXPR
),
#endif
#ifdef NOEXPR
LANGINFO
(
NOEXPR
),
#endif
#ifdef _DATE_FMT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment