[Bug 1026027] Re: `calendar` util doesn't like utf in files
hamish
1026027 at bugs.launchpad.net
Wed Jul 18 08:45:55 UTC 2012
ah, it is a $LANG problem. I use LANG=C.
If I run `LANG=en_US.UTF-8 calendar` I see full output.
still a bug though, in those cases it should continue; past, not break
out of the search loop.
thanks,
Hamish
--
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:
New
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