Debian Bug report logs - #692283
python3-polib: cannot parse .po files containing U+0085

version graph

Package: python3-polib; Maintainer for python3-polib is Angel Abad <angel@debian.org>; Source for python3-polib is src:polib.

Reported by: Jakub Wilk <jwilk@debian.org>

Date: Sun, 4 Nov 2012 17:33:01 UTC

Severity: minor

Tags: upstream

Found in version polib/1.0.2-1

Forwarded to https://bitbucket.org/izi/polib/issue/35

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, jwilk@debian.org, Angel Abad <angel@debian.org>:
Bug#692283; Package python3-polib. (Sun, 04 Nov 2012 17:33:04 GMT) Full text and rfc822 format available.

Message #3 received at submit@bugs.debian.org (full text, mbox):

From: Jakub Wilk <jwilk@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: python3-polib: cannot parse .po files containing U+0085
Date: Sun, 4 Nov 2012 18:29:19 +0100
[Message part 1 (text/plain, inline)]
Package: python3-polib
Version: 1.0.2-1
Severity: minor

polib cannot parse .po files that contain (correctly encoded) U+0085 
(NEXT LINE) characters. Apparently it's because polib considers them as 
line separators. This is unlike gettext, which (as far as I can tell) 
splits lines only on ASCII CR and ASCII LF.


$ msgfmt -c x85.po && echo okay
okay

$ python3 -c 'import polib; polib.pofile("x85.po")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/polib.py", line 108, in pofile
    return _pofile_or_mofile(pofile, 'pofile', **kwargs)
  File "/usr/lib/python3/dist-packages/polib.py", line 74, in _pofile_or_mofile
    instance = parser.parse()
  File "/usr/lib/python3/dist-packages/polib.py", line 1290, in parse
    (self.instance.fpath, i))
IOError: Syntax error in po file x85.po (line 16)


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.5-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python3-polib depends on:
ii  python3  3.2.3-6

-- 
Jakub Wilk
[x85.po.gz (application/octet-stream, attachment)]

Added tag(s) upstream. Request was from Angel Abad <angel@debian.org> to control@bugs.debian.org. (Mon, 05 Nov 2012 09:39:06 GMT) Full text and rfc822 format available.

Set Bug forwarded-to-address to 'http://tinyurl.com/bwzs9zp'. Request was from Angel Abad <angel@debian.org> to control@bugs.debian.org. (Mon, 05 Nov 2012 09:39:06 GMT) Full text and rfc822 format available.

Changed Bug forwarded-to-address to 'https://bitbucket.org/izi/polib/issue/35' from 'http://tinyurl.com/bwzs9zp' Request was from Jakub Wilk <jwilk@debian.org> to control@bugs.debian.org. (Mon, 05 Nov 2012 10:57:03 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 00:32:25 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.