Package: bsdmainutils Version: 11.1.2+b1 Severity: normal Dear Maintainer,
The 'mon' %B is used for date specification like "10 октября" (October 10), but for month name 'alt_mon' %OB should be used: "Октябрь" (not "Октября") Please apply the patch attached and enable it in the patches/series (add it to the end of ncal patches) --- series.orig 2019-10-29 13:29:15.656000000 +0300 +++ series 2019-10-29 13:30:18.484000000 +0300 @@ -12,6 +12,7 @@ ncal_backward.diff ncal_options.diff ncal_backward_weeks.diff +ncal_altmon.diff col_cap.diff col_line.diff column_empty.diff -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (800, 'unstable'), (200, 'experimental') Architecture: amd64 (x86_64)
--- a/usr.bin/ncal/ncal.c +++ b/usr.bin/ncal/ncal.c @@ -871,7 +871,7 @@ memset(&tm, 0, sizeof(tm)); tm.tm_mon = m; wcsftime(mlines->name, sizeof(mlines->name) / sizeof(mlines->name[0]), - L"%B", &tm); + L"%OB", &tm); mlines->name[0] = towupper(mlines->name[0]); /* @@ -974,7 +974,7 @@ memset(&tm, 0, sizeof(tm)); tm.tm_mon = m; wcsftime(mlines->name, sizeof(mlines->name) / sizeof(mlines->name[0]), - L"%B", &tm); + L"%OB", &tm); mlines->name[0] = towupper(mlines->name[0]); /* @@ -1207,7 +1207,7 @@ *y = ny; return (0); } - if (strptime(s, "%B", &tm) != NULL || strptime(s, "%b", &tm) != NULL) { + if (strptime(s, "%OB", &tm) != NULL || strptime(s, "%Ob", &tm) != NULL) { *m = tm.tm_mon + 1; return (0); }