Bug#533600: gtranslator: msgid ending with backslash causes file corruption
Peter Krefting
peter at softwolves.pp.se
Fri Jun 19 08:15:27 UTC 2009
Package: gtranslator
Version: 1.1.7-4
Severity: normal
How to reproduce:
1. Open the following file in gtranslator:
=== BEGIN test.po ===
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: EMAIL at ADDRESS\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "/?#[]@!$&'()*+,;:=<>\\"
msgstr ""
=== END ===
2. Press OK to let gtranslator save its signature.
3. Press F11 to copy the msgid string to msgstr.
4. Save and quit.
Expected result: The PO file should contain
msgid "/?#[]@!$&'()*+,;:=<>\\"
msgstr "/?#[]@!$&'()*+,;:=<>\\"
Actual result: The PO file contains
msgid "/?#[]@!$&'()*+,;:=<>\\""
msgstr "/?#[]@!$&'()*+,;:=<>\\""
which consitutes a syntax error:
$ msgfmt --statistics --check test.po
test.po:21: end-of-line within string
test.po:22: end-of-line within string
msgfmt: found 2 fatal errors
-- System Information:
Debian Release: 5.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=sv, LC_CTYPE=sv (charmap=ISO-8859-1) (ignored: LC_ALL set to sv_SE.ISO8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages gtranslator depends on:
ii libart-2.0-2 2.3.20-2 Library of functions for 2D graphi
ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit
ii libbonobo2-0 2.22.0-1 Bonobo CORBA interfaces library
ii libbonoboui2-0 2.22.0-1 The Bonobo UI library
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libcairo2 1.6.4-7 The Cairo 2D vector graphics libra
ii libgconf2-4 2.22.0-1 GNOME configuration database syste
ii libglib2.0-0 2.16.6-1+lenny1 The GLib library of C routines
ii libgnome2-0 2.20.1.1-1 The GNOME 2 library - runtime file
ii libgnomecanvas2-0 2.20.1.1-1 A powerful object-oriented display
ii libgnomeui-0 2.20.1.1-2 The GNOME 2 libraries (User Interf
ii libgnomevfs2-0 1:2.22.0-5 GNOME Virtual File System (runtime
ii libgtk2.0-0 2.12.12-1~lenny1 The GTK+ graphical user interface
ii libgtkspell0 2.0.13-1+b1 a spell-checking addon for GTK's T
ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library
ii liborbit2 1:2.14.13-0.1 libraries for ORBit2 - a CORBA ORB
ii libpango1.0-0 1.20.5-3+lenny1 Layout and rendering of internatio
ii libpopt0 1.14-4 lib for parsing cmdline parameters
ii libsm6 2:1.0.3-2 X11 Session Management library
ii libxml2 2.6.32.dfsg-5 GNOME XML library
gtranslator recommends no packages.
gtranslator suggests no packages.
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list