mainGNU M4 - Support: sr #110501, Plese convert all po/*.po fiels to...

 
 

sr #110501: Plese convert all po/*.po fiels to UTF-8

Submitter:  Tomasz Kłoczko <kloczek>
Submitted:  Tue 01 Jun 2021 09:40:36 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 02 Jun 2021 08:18:16 AM UTC, comment #2: 


comment #1:

> Thanks for the report.  I am forwarding this request to the translation project, since they are the source of these files.  Nothing that m4.git can do about it, although the release project automatically picks up any changes made by the translation project.  As such, I'm closing this, not because the conversion is complete, but because the translation project does not use this bug tracker.


Sorry but you are wrong.
That conversion is done by (g)libc code not gettext.
Gettext provides only set of tools allowing work on resources used to automatically translate messages.

Look around. At the moment only few projects maintained mainly on gnu.org are still usimg .po files witth non-utf encodings which is really shame.

This is about KISS pronciple, and that conversion can be done despite what translators are doing because attached patch only changes encoding not actuall texts of the translations.
If it is possible to avoid loding encoding conversion tables becaiuse at the moment EVERYTHING is using UTF-8 that should be done.

Tomasz Kłoczko <kloczek>
Tue 01 Jun 2021 12:58:46 PM UTC, comment #1: 

Thanks for the report.  I am forwarding this request to the translation project, since they are the source of these files.  Nothing that m4.git can do about it, although the release project automatically picks up any changes made by the translation project.  As such, I'm closing this, not because the conversion is complete, but because the translation project does not use this bug tracker.

Eric Blake <ericb>
Group administrator
Tue 01 Jun 2021 09:40:36 AM UTC, original submission:  

Currently most of the systems are using UTF-8 based locale settings.
Whhen .po file is in non UTF-8 encoding it causes that generated .mo file is in teh esame encoding. This is causing that when actually .mo file is used (g)glibc must on the fly convert it to UTF-8.

[tkloczko@barrel po]$ grep charset= *po
bg.po:"Content-Type: text/plain; charset=UTF-8\n"
cs.po:"Content-Type: text/plain; charset=ISO-8859-2\n"
da.po:"Content-Type: text/plain; charset=ISO-8859-1\n"
de.po:"Content-Type: text/plain; charset=ISO-8859-1\n"
el.po:"Content-Type: text/plain; charset=iso-8859-7\n"
eo.po:"Content-Type: text/plain; charset=utf-8\n"
es.po:"Content-Type: text/plain; charset=UTF-8\n"
fi.po:"Content-Type: text/plain; charset=UTF-8\n"
fr.po:"Content-Type: text/plain; charset=UTF-8\n"
ga.po:"Content-Type: text/plain; charset=ISO-8859-1\n"
gl.po:"Content-Type: text/plain; charset=UTF-8\n"
hr.po:"Content-Type: text/plain; charset=UTF-8\n"
id.po:"Content-Type: text/plain; charset=ISO-8859-1\n"
ja.po:"Content-Type: text/plain; charset=UTF-8\n"
ko.po:"Content-Type: text/plain; charset=UTF-8\n"
nl.po:"Content-Type: text/plain; charset=UTF-8\n"
pl.po:"Content-Type: text/plain; charset=UTF-8\n"
pt_BR.po:"Content-Type: text/plain; charset=UTF-8\n"
ro.po:"Content-Type: text/plain; charset=ISO-8859-2\n"
ru.po:"Content-Type: text/plain; charset=KOI8-R\n"
sr.po:"Content-Type: text/plain; charset=UTF-8\n"
sv.po:"Content-Type: text/plain; charset=ISO-8859-1\n"
uk.po:"Content-Type: text/plain; charset=UTF-8\n"
vi.po:"Content-Type: text/plain; charset=utf-8\n"
zh_CN.po:"Content-Type: text/plain; charset=UTF-8\n"
zh_TW.po:"Content-Type: text/plain; charset=UTF-8\n"



Tomasz Kłoczko <kloczek>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #51506:  m4-po_to_utf-8.patch added by kloczek (223KiB - application/octet-stream - Convert po/*po files to UTF-8)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ericb (Posted a comment)
  • -email is unavailable- added by kloczek (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.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-06-01 ericb StatusNone Confirmed
        Open/ClosedOpen Closed
    2021-06-01 kloczek Attached File- Added m4-po_to_utf-8.patch, #51506

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code