[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #65104] msgmerge fails to merge utf8 PO file against an iso-8859-1
From: |
Martin Quinson |
Subject: |
[bug #65104] msgmerge fails to merge utf8 PO file against an iso-8859-1 POT file |
Date: |
Mon, 1 Jan 2024 20:07:47 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?65104>
Summary: msgmerge fails to merge utf8 PO file against an
iso-8859-1 POT file
Group: GNU gettext
Submitter: mquinson
Submitted: mar. 02 janv. 2024 02:07:45
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: mar. 02 janv. 2024 02:07:45 By: Martin Quinson <mquinson>
Hello,
when I try to merge a file encoded in utf8 against a pot file that is encoded
in latin1, I get an error message about invalid multibyte strings, and the
non-ascii chars of the msgids are mangled.
Here are two files to reproduce the problem.
$ file *
iso8859.pot: GNU gettext message catalogue, ISO-8859 text
utf8.po: GNU gettext message catalogue, Unicode text, UTF-8 text
$ grep charset= *
iso8859.pot:"Content-Type: text/plain; charset=ISO-8859-1\n"
utf8.po:"Content-Type: text/plain; charset=UTF-8\n"
$ iconv -f iso-8859-1 -t UTF-8 iso8859.pot -o /dev/null
$ iconv -f UTF-8 -t latin1 utf8.po -o /dev/null
$ LC_ALL=C msgmerge utf8.po iso8859.pot
..... done.
# Language up translations for po package
# Copyright (C) 2020 Free Software Foundation, Inc.
# This file is distributed under the same license as the po package.
# Automatically generated, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: po 4a\n"
"POT-Creation-Date: 2024-01-02 02:22+0100\n"
"PO-Revision-Date: 2020-04-09 17:33+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: up\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. type: =head1
#: iso8859.pod:1
#, fuzzy
utf8.po:21: invalid multibyte sequence
utf8.po:21: invalid multibyte sequence
msgid "Ttulo de prueba"
msgstr "TÍTULO DE PRUEBA"
#. type: textblock
#: iso8859.pod:3
#, fuzzy
utf8.po:26: invalid multibyte sequence
utf8.po:26: invalid multibyte sequence
utf8.po:26: invalid multibyte sequence
utf8.po:26: invalid multibyte sequence
msgid "blbleble llalala"
msgstr "BLÈBLEBLE LÁLALALA"
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: mar. 02 janv. 2024 02:07:45 Name: utf8.po Size: 735o By: mquinson
<http://savannah.gnu.org/bugs/download.php?file_id=55503>
-------------------------------------------------------
Date: mar. 02 janv. 2024 02:07:45 Name: iso8859.pot Size: 700o By:
mquinson
<http://savannah.gnu.org/bugs/download.php?file_id=55504>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65104>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #65104] msgmerge fails to merge utf8 PO file against an iso-8859-1 POT file,
Martin Quinson <=