Commit 6983ea49eddfdf0b991eb3177205c7b6ab495f3e
- Date: Wed May 09 20:24:11 +0000 2007
- Committer: fbos (fbos@d6c2ea82-c31b-0410-8381-e9c44f9824c5)
- Author: fbos (fbos@d6c2ea82-c31b-0410-8381-e9c44f9824c5)
- Commit SHA1: 6983ea49eddfdf0b991eb3177205c7b6ab495f3e
- Tree SHA1: c861b5e166c6600166a3330416e3a23d8caa9d5f
Support repositories with foreign names by setting LANGUAGE and not LC_ALL.
git-svn-id: svn+ssh://rubyforge.org/var/svn/piston/trunk@113 d6c2ea82-c31b-0410-8381-e9c44f9824c5
Commit diff
| |   |
| 1 | 1 | *SVN* |
| 2 | 2 | |
| 3 | * Per http://rubyforge.org/tracker/?func=detail&atid=8179&aid=10717&group_id=2105 |
| 4 | Don't set LC_ALL, but set LANGUAGE so that repositories with foreign |
| 5 | characters can be used. Thanks go to Per Wigren. |
| 6 | |
| 3 | 7 | 2007-03-22 1.3.3 |
| 4 | 8 | * Repaired problems with import subcommand. Wrote specifications to prevent |
| 5 | 9 | the same failure mode again. |
| toggle raw diff |
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,9 @@
*SVN*
+* Per http://rubyforge.org/tracker/?func=detail&atid=8179&aid=10717&group_id=2105
+ Don't set LC_ALL, but set LANGUAGE so that repositories with foreign
+ characters can be used. Thanks go to Per Wigren.
+
2007-03-22 1.3.3
* Repaired problems with import subcommand. Wrote specifications to prevent
the same failure mode again. |
| |   |
| 37 | 37 | command = "svn #{args.join(' ')}" |
| 38 | 38 | logging_stream.puts command if verbose |
| 39 | 39 | return if dry_run |
| 40 | | ENV['LC_ALL'] = 'C' |
| 40 | ENV['LANGUAGE'] = 'en_US' |
| 41 | 41 | result = `#{command}` |
| 42 | 42 | logging_stream.puts result if verbose |
| 43 | 43 | raise "Command #{command} resulted in an error:\n\n#{result}" unless $?.exitstatus.zero? |
| toggle raw diff |
--- a/lib/piston/command.rb
+++ b/lib/piston/command.rb
@@ -37,7 +37,7 @@ module Piston
command = "svn #{args.join(' ')}"
logging_stream.puts command if verbose
return if dry_run
- ENV['LC_ALL'] = 'C'
+ ENV['LANGUAGE'] = 'en_US'
result = `#{command}`
logging_stream.puts result if verbose
raise "Command #{command} resulted in an error:\n\n#{result}" unless $?.exitstatus.zero? |