Bug#962324: gettext-el: confused with comment line containing 2 double-quote characters

2020-06-06 Thread Vincent Lefevre
Control: tags -1 fixed-upstream

On 2020-06-06 12:13:17 +0200, Vincent Lefevre wrote:
> In a .po file, a line starting with # and containing (at least)
> 2 double-quote characters is not regarded as a comment.

It has just been fixed:
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=71021c8633b276772cb75ec7705ddb2845df1ff9

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#962324: gettext-el: confused with comment line containing 2 double-quote characters

2020-06-06 Thread Vincent Lefevre
Package: gettext-el
Version: 0.19.8.1-10
Severity: minor

In a .po file, a line starting with # and containing (at least)
2 double-quote characters is not regarded as a comment.
See attached testcase, which has

# Line 3 "foo"

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-2-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gettext-el depends on:
ii  emacs-gtk [emacsen]  1:26.3+1-2
ii  gettext  0.19.8.1-10

gettext-el recommends no packages.

gettext-el suggests no packages.

-- no debconf information

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
# Line 1
# Line 2 foo
# Line 3 "foo"
# Line 4
#
# , fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Test\n"
"PO-Revision-Date: 2020-06-06 11:35+0200\n"
"Last-Translator: Vincent Lefevre \n"
"Language-Team: Vincent Lefevre \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"