The $LastChangedDate$ keyword is localized to the correct language but
not to the correct encoding. This patch seems to help - comments?
I tested with LC_CTYPE=hu_HU.iso88592. Effect of patch:
-$LastChangedDate: 2006-04-21 06:46:54 -0500 (p, 21 ápr 2006) $
+$LastChangedDate: 2006-04-21 06:46:54 -0500 (p, 21 ápr 2006) $
I didn't check for other instances of the same bug. I seem to recall a
bit of controversy recently regarding repository paths in keywords, but
I don't remember the conclusion.
[[[
Fix encoding of LastChangedDate keyword expansion.
* subversion/libsvn_subr/subst.c (keyword_printf):
Convert the long-format revision date to the native encoding.
]]]
Index: subversion/libsvn_subr/subst.c
===================================================================
--- subversion/libsvn_subr/subst.c (revisione 19429)
+++ subversion/libsvn_subr/subst.c (copia locale)
@@ -224,8 +224,12 @@
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 'r': /* number of this revision */
if (rev)
Received on Fri Apr 21 14:01:14 2006