[Debian-l10n-commits] r1800 - in /translate-toolkit/trunk/debian: changelog patches/message_end_with_escaped_backslash patches/series

nekral-guest at users.alioth.debian.org nekral-guest at users.alioth.debian.org
Wed Jul 22 18:09:34 UTC 2009


Author: nekral-guest
Date: Wed Jul 22 18:09:31 2009
New Revision: 1800

URL: http://svn.debian.org/wsvn/?sc=1&rev=1800
Log:
  * debian/patches/message_end_with_escaped_backslash: Fix failure caused by
    PO messages ending with an escaped backslash. Closes: #536045

Added:
    translate-toolkit/trunk/debian/patches/message_end_with_escaped_backslash
Modified:
    translate-toolkit/trunk/debian/changelog
    translate-toolkit/trunk/debian/patches/series

Modified: translate-toolkit/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/translate-toolkit/trunk/debian/changelog?rev=1800&op=diff
==============================================================================
--- translate-toolkit/trunk/debian/changelog (original)
+++ translate-toolkit/trunk/debian/changelog Wed Jul 22 18:09:31 2009
@@ -1,3 +1,10 @@
+translate-toolkit (1.3.0-6) unstable; urgency=low
+
+  * debian/patches/message_end_with_escaped_backslash: Fix failure caused by
+    PO messages ending with an escaped backslash. Closes: #536045
+
+ -- Nicolas FRANCOIS (Nekral) <nicolas.francois at centraliens.net>  Wed, 22 Jul 2009 20:00:34 +0200
+
 translate-toolkit (1.3.0-5) unstable; urgency=low
 
   * debian/rules: Install the lintian override file with dh_lintian

Added: translate-toolkit/trunk/debian/patches/message_end_with_escaped_backslash
URL: http://svn.debian.org/wsvn/translate-toolkit/trunk/debian/patches/message_end_with_escaped_backslash?rev=1800&op=file
==============================================================================
--- translate-toolkit/trunk/debian/patches/message_end_with_escaped_backslash (added)
+++ translate-toolkit/trunk/debian/patches/message_end_with_escaped_backslash Wed Jul 22 18:09:31 2009
@@ -1,0 +1,17 @@
+Index: trunk/translate/storage/poparser.py
+===================================================================
+--- trunk.orig/translate/storage/poparser.py	2009-07-22 20:04:04.727547766 +0200
++++ trunk/translate/storage/poparser.py	2009-07-22 20:05:00.951544316 +0200
+@@ -169,10 +169,10 @@
+     left = find(line, '"', start_pos)
+     if left == start_pos or isspace(line[start_pos:left]):
+         right = rfind(line, '"')
+-        if left != right and line[right - 1] != '\\': # If we found a terminating quote
++        if left != right:
+             return parse_state.read_line()[left:right+1]
+         else: # If there is no terminating quote 
+-            return parse_state.read_line()[left:] + '"'
++            raise Exception("unterminated line")
+     return None
+ 
+ def parse_msg_comment(parse_state, msg_comment_list, string):

Modified: translate-toolkit/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/translate-toolkit/trunk/debian/patches/series?rev=1800&op=diff
==============================================================================
--- translate-toolkit/trunk/debian/patches/series (original)
+++ translate-toolkit/trunk/debian/patches/series Wed Jul 22 18:09:31 2009
@@ -5,3 +5,4 @@
 storage_bzr
 deepcopy_bug870
 po2html_duplicate
+message_end_with_escaped_backslash




More information about the Debian-l10n-commits mailing list