summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@debian.org>2018-08-01 20:44:35 -0400
committerJames McCoy <jamessan@debian.org>2018-10-09 06:39:58 -0400
commitd2b7a18410152805e7755370f2e3bd3e49a2f74c (patch)
tree473846d7bfa949b678a4701d2931d3a6a25bbb81
parent8ff7f0c12b598308a652c6b8ffbb61eb4ad37d33 (diff)
last-changed-date-charset
Bug #290774: Convert $LastChangedDate$ keyword to the local character Bug #290774: Convert $LastChangedDate$ keyword to the local character set, since it is already rendered in the local language. Not accepted upstream: http://svn.haxx.se/dev/archive-2006-04/0730.shtml Gbp-Pq: Name last-changed-date-charset
-rw-r--r--subversion/libsvn_subr/subst.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/subversion/libsvn_subr/subst.c b/subversion/libsvn_subr/subst.c
index c8c3018..b69f90a 100644
--- a/subversion/libsvn_subr/subst.c
+++ b/subversion/libsvn_subr/subst.c
@@ -210,8 +210,12 @@ keyword_printf(const char *fmt,
break;
case 'D': /* long format of date of this revision */
if (date)
- svn_stringbuf_appendcstr(value,
- svn_time_to_human_cstring(date, pool));
+ {
+ char *date_keyword;
+ char *date_utf8 = svn_time_to_human_cstring (date, pool);
+ svn_utf_cstring_from_utf8(&date_keyword, date_utf8, pool);
+ svn_stringbuf_appendcstr(value, date_keyword);
+ }
break;
case 'P': /* relative path of this file */
if (repos_root_url && *repos_root_url != '\0' && url && *url != '\0')