Package: pal
Version: 0.4.3-8
Severity: normal

Dear Maintainer,

 I noticed today that pal seems to calculate the weeknumber always US
centric (or at least not locale aware).  If one has put show_weeknum
into ~/.pal/pal.conf, regardless of LC_TIME setting pal always seems to
calculate as if it's set to C.

 Example to reproduce:

#+
$> LC_TIME=de_AT.UTF-8 pal
     Mo   Di   Mi   Do   Fr   Sa   So |     Mo   Di   Mi   Do   Fr   Sa   So
Jul  13   14   15   16   17   18   19 |Aug  17   18   19   20   21   22   23 
 29 @20@  21   22   23   24   25   26 | 34  24   25   26   27   28   29   30 
Aug  27   28   29   30   31   01   02 |Sep  31   01   02   03   04   05   06 
 31  03   04   05   06   07   08   09 | 36  07   08   09   10   11   12   13 
 32  10   11   12   13   14  A15T  16 | 37  14   15   16   17   18   19   20 
$> LC_TIME=C pal
Jul  13   14   15   16   17   18   19 |Aug  17   18   19   20   21   22   23 
 29 @20@  21   22   23   24   25   26 | 34  24   25   26   27   28   29   30 
Aug  27   28   29   30   31   01   02 |Sep  31   01   02   03   04   05   06 
Aug  27   28   29   30   31   01   02 |Sep  31   01   02   03   04   05   06 
 31  03   04   05   06   07   08   09 | 36  07   08   09   10   11   12   13 
 32  10   11   12   13   14  A15T  16 | 37  14   15   16   17   18   19   20 
$> 
#-

 See first column, mixed with the month name: It's the same :)

 On the other hand, ncal -w does take the LC_TIME environment into account:

#v+
$> LC_TIME=de_AT.UTF-8 ncal -w 
    Juli 2015         
Mo     6 13 20 27   
Di     7 14 21 28   
Mi  1  8 15 22 29   
Do  2  9 16 23 30   
Fr  3 10 17 24 31   
Sa  4 11 18 25      
So  5 12 19 26      
   27 28 29 30 31   
$> LC_TIME=C ncal -w 
    July 2015         
Su     5 12 19 26   
Mo     6 13 20 27   
Tu     7 14 21 28   
We  1  8 15 22 29   
Th  2  9 16 23 30   
Fr  3 10 17 24 31   
Sa  4 11 18 25      
   26 27 28 29 30   
$> 
#v-

 See last line. Interestingly, even with LC_TIME=en_US.UTF-8 the weeknum
becomes 30.

 Thanks,
Rhonda
-- 
Fühlst du dich mutlos, fass endlich Mut, los      |
Fühlst du dich hilflos, geh raus und hilf, los    | Wir sind Helden
Fühlst du dich machtlos, geh raus und mach, los   | 23.55: Alles auf Anfang
Fühlst du dich haltlos, such Halt und lass los    |


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to