* [Bug localedata/17874] New: localedef fails on ifndef-tokens and on if-statements following an if-else-statement.
@ 2015-01-25 13:56 jonas.bechtel at web dot de
2015-01-28 12:00 ` [Bug localedata/17874] " schwab@linux-m68k.org
0 siblings, 1 reply; 2+ messages in thread
From: jonas.bechtel at web dot de @ 2015-01-25 13:56 UTC (permalink / raw)
To: libc-locales
https://sourceware.org/bugzilla/show_bug.cgi?id=17874
Bug ID: 17874
Summary: localedef fails on ifndef-tokens and on if-statements
following an if-else-statement.
Product: glibc
Version: 2.20
Status: NEW
Severity: normal
Priority: P2
Component: localedata
Assignee: unassigned at sourceware dot org
Reporter: jonas.bechtel at web dot de
CC: libc-locales at sourceware dot org
Remark: The actual binary I tested is a glibc 2.15 binary of my distribution,
but i've seen the error (at least the first one) in the 2.20 source, too.
Error 1: ifndef isn't recognized in LC_COLLATE sections of locale source file.
The reason is that it's missing in locfile-kw.gperf file.
Error 2: I get a warning about nested if conditions. But the source files
aren't nested.
Following construction exits with error:
ifdef ABC
...
else
...
endif
...
ifdef DEF
...
else
...
endif
Following construction compiles fine:
ifdef ABC
...
endif
ifdef ABCX
...
endif
...
ifdef DEF
...
else
...
endif
I don't have the time to determine the location of the bug, but I suggest to do
collate->else_action = else_none
in ld-collate.c when tok_endif is reached. [Maybe that would break nested
if-clauses if activated in future, and maybe this bug doesn't exist in 2.20 any
more, even though I don't see a difference to the ld-collate.c file in this
respect]
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug localedata/17874] localedef fails on ifndef-tokens and on if-statements following an if-else-statement.
2015-01-25 13:56 [Bug localedata/17874] New: localedef fails on ifndef-tokens and on if-statements following an if-else-statement jonas.bechtel at web dot de
@ 2015-01-28 12:00 ` schwab@linux-m68k.org
0 siblings, 0 replies; 2+ messages in thread
From: schwab@linux-m68k.org @ 2015-01-28 12:00 UTC (permalink / raw)
To: libc-locales
https://sourceware.org/bugzilla/show_bug.cgi?id=17874
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
.
*** This bug has been marked as a duplicate of bug 17875 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-28 12:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-25 13:56 [Bug localedata/17874] New: localedef fails on ifndef-tokens and on if-statements following an if-else-statement jonas.bechtel at web dot de
2015-01-28 12:00 ` [Bug localedata/17874] " schwab@linux-m68k.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).