[Bug 1026027] Re: `calendar` util doesn't like utf in files
Rolf Leggewie
1026027 at bugs.launchpad.net
Wed Aug 14 12:41:35 UTC 2013
I can verify some of the symptoms described here.
Lucid:
$ LC_ALL=C calendar|head
$ LC_ALL=de_DE.UTF-8 calendar|head
In file included from <stdin>:16:
/usr/share/calendar/calendar.all:25: error: calendar.kazakhstan: No such file or directory
Aug 14 First Unix-based mallet created, 1954
Aug 14 IBM PC announced, 1981
Aug 14 Social Security begins in US, 1935
Aug 14 Independence Day in Pakistan
Aug 14 VJ Day, 1945
Aug 14 Waddi Dhahab in Morocco
Aug 14* Rosh Chodesh Elul (Beginning of the month of Elul)
Aug 14 RNA Show Day (Brisbane metro)
Aug 14 N'oubliez pas les Évrard !
Aug 14 Bonne fête aux Maximilien !
Precise:
$ LC_ALL=C calendar|head
Aug 14 First Unix-based mallet created, 1954
Aug 14 IBM PC announced, 1981
Aug 14 Social Security begins in US, 1935
Aug 14 Independence Day in Pakistan
Aug 14 VJ Day, 1945
Aug 14 Waddi Dhahab in Morocco
Aug 14 Day of the Burryma
Aug 14* RNA Show Day (Brisbane metro)
Aug 14
Aug 14
$ LC_ALL=de_DE.UTF-8 calendar|head
Aug 14 First Unix-based mallet created, 1954
Aug 14 IBM PC announced, 1981
Aug 14 Social Security begins in US, 1935
Aug 14 Independence Day in Pakistan
Aug 14 VJ Day, 1945
Aug 14 Waddi Dhahab in Morocco
Aug 14 Day of the Burryma
Aug 14* RNA Show Day (Brisbane metro)
Aug 14 N'oubliez pas les Évrard !
Aug 14 Bonne fête aux Maximilien !
** Changed in: bsdmainutils (Ubuntu)
Importance: Undecided => Low
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bsdmainutils in Ubuntu.
https://bugs.launchpad.net/bugs/1026027
Title:
`calendar` util doesn't like utf in files
Status in “bsdmainutils” package in Ubuntu:
Confirmed
Bug description:
Hi,
the `calendar` util doesn't like utf chars in files.
works fine on Debian.
(different) problems seen in Lucid and Precise.
on Lucid the 'calendar' program stops processing on calendar.birthday (the first real included file in /usr/share/calendar) when it gets to a line with the utf chars in it. Apparently it is not multi-byte safe.
by asciifying some entries I could get it mostly working. a few (but
not all) that needed de-utfing:
calendar.birthday:
12/18 Konrad Zuse died in H<C3><BC>nfeld, 1995
calendar.history:
09/13 58° C (136.4° F) measured at el Azizia, Libya, 1922
calendar.music
12/11 (Louis) Hector Berlioz born in La-Côte-Saint-André, 1803
after that it worked ok in Lucid.
also on lucid the /etc/calendar/default file is missing completely. copying it in from another version of ubuntu or debian makes the program return output. (without that it always returns nothing!)
In Precise it returns a number of hits, but also about a half dozen empty line entries.
$ calendar -A0
Jul 18 Brian Auger is born in London, 1939
Jul 18 Ty Cobb gets 4000th base hit, 1927
Jul 18 Constitution Day in Uruguay
Jul 18 Liberation Day in Nicaragua
Jul 18
Jul 18
Jul 18 Frigyes
Jul 18
I didn't test the non-LTSs.
?,
Hamish
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/1026027/+subscriptions
More information about the foundations-bugs
mailing list