diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-06 10:18:37 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-06 10:18:37 +0100 |
commit | 86350f8d5f5d5a1006cffe0bedccd625f012702f (patch) | |
tree | c8c6d997ed382e2f4440897e362a40bf1a1ad3a2 /coreutils | |
parent | bde70230e8aeb308c6ec562a33feba32715625de (diff) | |
download | busybox-w32-86350f8d5f5d5a1006cffe0bedccd625f012702f.tar.gz busybox-w32-86350f8d5f5d5a1006cffe0bedccd625f012702f.tar.bz2 busybox-w32-86350f8d5f5d5a1006cffe0bedccd625f012702f.zip |
cal: document the location of unicode bug. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/cal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c index 1f498fb7f..823644226 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c | |||
@@ -115,11 +115,17 @@ int cal_main(int argc UNUSED_PARAM, char **argv) | |||
115 | i = 0; | 115 | i = 0; |
116 | do { | 116 | do { |
117 | zero_tm.tm_mon = i; | 117 | zero_tm.tm_mon = i; |
118 | /* full month name according to locale */ | ||
118 | strftime(buf, sizeof(buf), "%B", &zero_tm); | 119 | strftime(buf, sizeof(buf), "%B", &zero_tm); |
119 | month_names[i] = xstrdup(buf); | 120 | month_names[i] = xstrdup(buf); |
120 | 121 | ||
121 | if (i < 7) { | 122 | if (i < 7) { |
122 | zero_tm.tm_wday = i; | 123 | zero_tm.tm_wday = i; |
124 | //FIXME: unicode | ||
125 | //Bug 839: | ||
126 | //testcase with doublewidth Japanese chars: "LANG=zh_TW.utf8 cal" | ||
127 | //perhaps use wc[s]width() to probe terminal width | ||
128 | /* abbreviated weekday name according to locale */ | ||
123 | strftime(buf, sizeof(buf), "%a", &zero_tm); | 129 | strftime(buf, sizeof(buf), "%a", &zero_tm); |
124 | strncpy(day_headings + i * (3+julian) + julian, buf, 2); | 130 | strncpy(day_headings + i * (3+julian) + julian, buf, 2); |
125 | } | 131 | } |