[Bug 826422] New: gettext: broken handling of unicode code point escapes in Tcl
https://bugzilla.novell.com/show_bug.cgi?id=826422
https://bugzilla.novell.com/show_bug.cgi?id=826422#c0
Summary: gettext: broken handling of unicode code point escapes
in Tcl
Classification: openSUSE
Product: openSUSE 12.3
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: gber@opensuse.org
QAContact: qa-bugs@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101
Firefox/21.0
xgettext parsing of unicode code point escapes is broken, it tries to replace
the escape with the literal unicode character but does not consume the last
character of the escape but copies it into the output which results in corrupt
.po files, e.g.:
----8<----
$ cat gettext-bug.tcl
#!/usr/bin/tclsh
package require msgcat
puts [msgcat::mc "Hello\u200e\u201cWorld\u201d"]
$ $ /usr/bin/xgettext -o- gettext-bug.tcl
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR
https://bugzilla.novell.com/show_bug.cgi?id=826422
https://bugzilla.novell.com/show_bug.cgi?id=826422#c1
Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=826422
https://bugzilla.novell.com/show_bug.cgi?id=826422#c2
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=826422
https://bugzilla.novell.com/show_bug.cgi?id=826422#c3
--- Comment #3 from Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=826422
https://bugzilla.novell.com/show_bug.cgi?id=826422#c4
--- Comment #4 from Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=826422
https://bugzilla.novell.com/show_bug.cgi?id=826422#c5
--- Comment #5 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=826422
https://bugzilla.novell.com/show_bug.cgi?id=826422#c6
--- Comment #6 from Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=826422
https://bugzilla.novell.com/show_bug.cgi?id=826422#c7
--- Comment #7 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=826422
https://bugzilla.novell.com/show_bug.cgi?id=826422#c8
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=826422
https://bugzilla.novell.com/show_bug.cgi?id=826422#c9
--- Comment #9 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com