~svn/ubuntu/oneiric/subversion/ppa

« back to all changes in this revision

Viewing changes to debian/patches/last-changed-date-charset

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-12-13 17:57:16 UTC
  • mfrom: (1.1.6 upstream) (0.1.3 etch)
  • Revision ID: james.westby@ubuntu.com-20061213175716-2ysv6z4w5dpa2r2f
Tags: 1.4.2dfsg1-2ubuntu1
* Merge with Debian unstable; remaining changes:
  - Create pot file on build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
##
 
3
## last-changed-date-charset by <peter@p12n.org>
 
4
##
 
5
## DP: Convert $LastChangedDate$ keyword to the local character set.
 
6
## DP: See #290774.
 
7
 
 
8
@DPATCH@
 
9
diff -urN a/subversion/libsvn_subr/subst.c b/subversion/libsvn_subr/subst.c
 
10
--- a/subversion/libsvn_subr/subst.c
 
11
+++ b/subversion/libsvn_subr/subst.c
 
12
@@ -224,8 +224,12 @@
 
13
           break;
 
14
         case 'D': /* long format of date of this revision */
 
15
           if (date)
 
16
-            svn_stringbuf_appendcstr(value,
 
17
-                                     svn_time_to_human_cstring(date, pool));
 
18
+           {
 
19
+              char *date_keyword;
 
20
+              char *date_utf8 = svn_time_to_human_cstring (date, pool);
 
21
+              svn_utf_cstring_from_utf8(&date_keyword, date_utf8, pool);
 
22
+              svn_stringbuf_appendcstr(value, date_keyword);
 
23
+            }
 
24
           break;
 
25
         case 'r': /* number of this revision */
 
26
           if (rev)