To clarify the patch above a bit. The bug submitter's main issue was
essentialy fixed upstream in September 2005 with this commit:
http://repo.or.cz/w/glibc.git/commitdiff/d29f5cc776206fe1618b73f7afdf3eef239cf073
A side-effect of this commit is that now the output of ncal -e and
ncal -o gets ungra
I think this workaround warrants a mention in the manpage. I adjusted
an example in debian/patches/hexdump_man.diff accordingly, see the
attachment.
Maybe it should also say somewhere that in order to output a literal
backslash it must be put onto a separate format unit.
Description: Add examples
Weird. I'd never expect C and C.UTF-8 be different. These are locale values:
$ LC_ALL=C locale week-1stweek
4
$ LC_ALL=C.UTF-8 locale week-1stweek
7
$ LC_ALL=en_US locale week-1stweek
7
LC_ALL=en_US.utf8 locale week-1stweek
7
$ LC_ALL=de_DE.utf8 locale week-1stweek
4
$ LC_ALL=ru_RU.utf8 locale week
Ah, sorry, it seems I was wrong about the C locale. I just cannot make
out how it counts weeks. Comments in usr.bin/ncal/calendar.c suggest
that it uses ISO definition, except when exactly 3 days of the first
week are in the preceding year -- in this case it would use the locale
value. Still, I get
It depends on the current locale and what day, Sunday or Monday,
counts as start of the week. In C/POSIX, the first Sunday of the year
starts week 1:
$ LC_ALL=C ncal -wd 2015-01
January 2015
Su 4 11 18 25
Mo 5 12 19 26
Tu 6 13 20 27
We 7 14 21 28
Th 1 8 15 22 29
Fr 2 9 16 23
l -e
04/05/2015
$ LC_ALL=de_DE.UTF-8 ./ncal -e
05.04.2015
$ LC_ALL=ru_RU.UTF-8 ./ncal -e
05.04.2015
Description: Display Easter date according to locale rules
Use the %x strftime format instead of ad-hoc "%e %B %Y" and "%B %e %Y"
Author: Sergey Romanov
Bug-Debian: https://bu
Actually, it works. Try
$ echo hello|hexdump -ve '"\\" /1 "x%02X"';printf \\n
\x68\x65\x6C\x6C\x6F\x0A
7 matches
Mail list logo