Bug#252166: re-submitting #215245

2015-09-09 Thread Sergey Romanov
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

Bug#776096: bsdmainutils: hexdump fails if format_string contains backslash

2015-09-04 Thread Sergey Romanov
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

Bug#776096: bsdmainutils: hexdump fails if format_string contains backslash

2015-09-03 Thread Sergey Romanov
Actually, it works. Try $ echo hello|hexdump -ve '"\\" /1 "x%02X"';printf \\n \x68\x65\x6C\x6C\x6F\x0A

Bug#252166: re-submitting #215245

2015-09-03 Thread Sergey Romanov
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 <schra...@gmail.com> Bug-De

Bug#789130: bsdmainutils: [ncal] prints wrong week number

2015-09-03 Thread Sergey Romanov
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

Bug#789130: bsdmainutils: [ncal] prints wrong week number

2015-09-03 Thread Sergey Romanov
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

Bug#789130: bsdmainutils: [ncal] prints wrong week number

2015-09-03 Thread Sergey Romanov
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