544ac66853
- Update to new upstream release 2.11 (forwarded request 197185 from jengelh) OBS-URL: https://build.opensuse.org/request/show/197243 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/alpine?expand=0&rev=33
50 lines
1.3 KiB
Diff
50 lines
1.3 KiB
Diff
---
|
|
pith/string.c | 14 ++++++++++++++
|
|
1 file changed, 14 insertions(+)
|
|
|
|
Index: alpine-2.11/pith/string.c
|
|
===================================================================
|
|
--- alpine-2.11.orig/pith/string.c
|
|
+++ alpine-2.11/pith/string.c
|
|
@@ -770,6 +770,7 @@ month_abbrev_locale(int month_num)
|
|
return("xxx");
|
|
else{
|
|
static char buf[20];
|
|
+ char *utf8buf;
|
|
struct tm tm;
|
|
|
|
memset(&tm, 0, sizeof(tm));
|
|
@@ -811,6 +812,12 @@ month_abbrev_locale(int month_num)
|
|
|
|
buf[0] = ' ';
|
|
}
|
|
+ utf8buf = convert_to_utf8(buf, NULL, 0);
|
|
+ if (utf8buf != NULL) {
|
|
+ strncpy(buf, utf8buf, sizeof(buf));
|
|
+ buf[sizeof(buf)-1] = '\0';
|
|
+ fs_give((void **)&utf8buf);
|
|
+ }
|
|
|
|
return(buf);
|
|
}
|
|
@@ -842,12 +849,19 @@ month_name_locale(int month_num)
|
|
return("");
|
|
else{
|
|
static char buf[20];
|
|
+ char *utf8buf;
|
|
struct tm tm;
|
|
|
|
memset(&tm, 0, sizeof(tm));
|
|
tm.tm_year = 107;
|
|
tm.tm_mon = month_num-1;
|
|
our_strftime(buf, sizeof(buf), "%B", &tm);
|
|
+ utf8buf = convert_to_utf8(buf, NULL, 0);
|
|
+ if (utf8buf != NULL) {
|
|
+ strncpy(buf, utf8buf, sizeof(buf));
|
|
+ buf[sizeof(buf)-1] = '\0';
|
|
+ fs_give((void **)&utf8buf);
|
|
+ }
|
|
return(buf);
|
|
}
|
|
}
|