[Gnucash-changes] r11950 - meta/hooks - Run in utf8 locale so commit messages get sent properly.

Derek Atkins warlord at cvs.gnucash.org
Tue Nov 15 18:15:37 EST 2005


Author: warlord
Date: 2005-11-15 18:15:37 -0500 (Tue, 15 Nov 2005)
New Revision: 11950
Trac: http://svn.gnucash.org/trac/changeset/11950

Modified:
   meta/hooks/commit-email.pl
   meta/hooks/post-commit
Log:
Run in utf8 locale so commit messages get sent properly.
Remove a chdir from the commit script because svnlook is new enough.


Modified: meta/hooks/commit-email.pl
===================================================================
--- meta/hooks/commit-email.pl	2005-11-15 23:08:24 UTC (rev 11949)
+++ meta/hooks/commit-email.pl	2005-11-15 23:15:37 UTC (rev 11950)
@@ -237,9 +237,9 @@
 # directory. This could be removed - it's only for compatibility with
 # 1.0.x svnlook - from 1.1.0, svnlook will be sensible about choosing a
 # temporary directory all by itself.
-my $tmp_dir = ( -d $ENV{'TEMP'} ? $ENV{'TEMP'} : '/tmp' );
-chdir($tmp_dir)
-  or die "$0: cannot chdir `$tmp_dir': $!\n";
+#my $tmp_dir = ( -d $ENV{'TEMP'} ? $ENV{'TEMP'} : '/tmp' );
+#chdir($tmp_dir)
+#  or die "$0: cannot chdir `$tmp_dir': $!\n";
 
 # Get the author, date, and log from svnlook.
 my @svnlooklines = &read_from_process($svnlook, 'info', $repos, '-r', $rev);

Modified: meta/hooks/post-commit
===================================================================
--- meta/hooks/post-commit	2005-11-15 23:08:24 UTC (rev 11949)
+++ meta/hooks/post-commit	2005-11-15 23:15:37 UTC (rev 11950)
@@ -46,6 +46,9 @@
 REPOS="$1"
 REV="$2"
 
+# We need this to force running in the UTF-8 locale for email sending
+export LANG=en_US.UTF-8
+
 COMMIT_EMAIL=${REPOS}/hooks/commit-email.pl
 # with diffs...
 ${COMMIT_EMAIL} "$REPOS" "$REV" gnucash-changes at gnucash.org



More information about the gnucash-changes mailing list