summaryrefslogtreecommitdiff
path: root/pith/string.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2013-08-31 00:00:52 -0600
committerEduardo Chappa <chappa@washington.edu>2013-08-31 00:00:52 -0600
commit1974cfc54c63ce74619dafbf1b985c8fbf46182b (patch)
tree36b7aa61423c7860b48659bb84a1dd1c5756a77b /pith/string.c
parent9e9955aecf65dfbf80bb32c70feec4acadff2a66 (diff)
downloadalpine-1974cfc54c63ce74619dafbf1b985c8fbf46182b.tar.xz
* DATE tokens were not internally transformed to UTF-8, which made their
values appear garbled or incomplete in the screen. Reported by Werner Scheinast. * Quoted string in URL Viewers configuration variable were not unquoted before passing to viewer.
Diffstat (limited to 'pith/string.c')
-rw-r--r--pith/string.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pith/string.c b/pith/string.c
index a0a826df..65ebd19c 100644
--- a/pith/string.c
+++ b/pith/string.c
@@ -776,6 +776,14 @@ month_abbrev_locale(int month_num)
tm.tm_mon = month_num-1;
our_strftime(buf, sizeof(buf), "%b", &tm);
+ if(strucmp("UTF-8", ps_global->display_charmap)){
+ char *s;
+ s = convert_to_utf8(buf, ps_global->display_charmap, 0);
+ strncpy(buf, s ? s : "", sizeof(buf));
+ buf[sizeof(buf)-1] = '\0';
+ if(s) fs_give((void **)&s);
+ }
+
/*
* If it is all digits, then use the English
* words instead. Look for