buggit2cl - Bugs: bug #65689, Warning "Wide character in...

 
 

bug #65689: Warning "Wide character in print"

Submitter:  R. Diez <rdiez>
Submitted:  Sun 05 May 2024 10:01:16 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 05 May 2024 10:01:16 AM UTC, original submission:  

When making "make distcheck" in OpenOCD, I saw warnings like these:

Wide character in print at ./tools/git2cl/git2cl line 339, <GEN0> line 15138.
Wide character in print at ./tools/git2cl/git2cl line 339, <GEN0> line 30233.
Wide character in print at ./tools/git2cl/git2cl line 339, <GEN0> line 31235.

The same warnings come up too when running git2cl manually.

This is an implementation problem in git2cl. Command "git log" outputs UTF-8 by default, see option "--encoding=<encoding>" in "git log", and the user probably wants to generate the ChangeLog file as UTF-8 too. Therefore, git2cl should change the stdio and stdout encodings to UTF-8.

A workaround is to set environment PERL_UNICODE="IO" before running git2cl.

Without fixing the code or using the workaround, the generated ChangeLog file may end up with the wrong character encoding.

R. Diez <rdiez>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rdiez (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code