bugGNU gettext - Bugs: bug #23177, po mode: editing a plural form...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #23177: po mode: editing a plural form creates invalid PO file

Submitter:  Bruno Haible <haible>
Submitted:  Tue 06 May 2008 12:23:29 AM UTC
   
 
Category:  PO mode Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Thu 08 May 2008 10:01:45 AM UTC, comment #3: 

Bug fix tested and approved!
Thank you, Bruno.

This bug is really annoying, do you intend to release a new version?


(file #15639)

Stéphane Raimbault <sraimbault>
Wed 07 May 2008 11:09:03 PM UTC, comment #2: 

The Emacs bug is unrelated, after all.

I fixed the bug in po-mode.el.

Bruno Haible <haible>
Group administrator
Tue 06 May 2008 11:38:01 AM UTC, comment #1: 

This bug depends on the resolution of the Emacs bug
  http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=192

Bruno Haible <haible>
Group administrator
Tue 06 May 2008 12:23:29 AM UTC, original submission:  

Reported by Stéphane Raimbault <stephane.raimbault@gmail.com> in
private email.

To reproduce:
- Take fr.po from gettext-0.17/gettext-tools/po/fr.po
- Take emacs 22.2
- emacs fr,po
- Search for the first occurrence of msgstr[1]. It's a 3-line string:

msgstr[1] ""
"Dans la directive numéro %u, trop de paramètres sont fournis (il en faut %u "
"au maximum)."

- Put the cursor at the beginning of the second or third of these lines.
- Press RET. Change the string. Press C-c C-c.
- The msgstr[1] is changed into msgstr[0] or msgstr !!
- The PO file is therefore invalid.

The effects can be observed more immediately by positioning
the cursor at the second or third line and executing
M-x po-current-entry
(It should position the cursor at the beginning of the currrent
entry, but moves it to the beginning of the next entry instead.)

Bruno Haible <haible>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #15639:  po-mode-plural-form.patch added by sraimbault (4KiB - text/x-diff - Patch by Bruno Haible)
file #15613:  fr.po added by haible (204KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sraimbault (Updated the item)
  • -email is unavailable- added by haible (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2016-11-26 haible CategoryNone PO mode
    2008-08-16 haible Open/ClosedOpen Closed
    2008-05-08 sraimbault Attached File- Added po-mode-plural-form.patch, #15639
    2008-05-07 haible StatusIn Progress Fixed
    2008-05-06 haible StatusConfirmed In Progress
    2008-05-06 haible Attached File- Added fr.po, #15613

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code