bug-gcal
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gcal] Display length of non-ASCII


From: Göran Uddeborg
Subject: [Bug-gcal] Display length of non-ASCII
Date: Fri, 10 Jun 2016 23:28:28 +0200

Hello,

I'm just trying become familiar with gcal, and found what seems to be
a localization issue right away.  I'm using Swedish, and when I run
"gcal" without any arguments, it looks like this:

23:21 mimmi$ gcal

juni 2016

måndag       6 13 20 27   
tisdag        7 14 21 28   
onsdag     1  8 15 22 29   
torsdag    2  9 16 23 30   
fredag     3 10 17 24      
lördag    4 11 18 25      
söndag    5 12 19 26      

Notice how the indentation differ between days containing non-ASCII
and days containing ASCII.  I'm using the locale sv_SE.utf8, and I get
the impression the code is assuming the display width of strings equal
their strlen().  That is not true when you use UTF-8.  The suspicion
is strengthened by the fact that the issue disappears if I try gcal in
the locale sv_SE, i.e. with the single-byte ISO-8859-1 character
encoding.

Is this a new bug, or is it a well known issue already in the backlog
of things to fix?

(I also found a couple of dubious translations, so I'll send in an
update to the Translation Project shortly.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]