diff options
author | Eric Wong <e@80x24.org> | 2014-08-16 23:38:05 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-08-16 23:38:05 +0000 |
commit | a27a6623449d00af838ba87319454d92dc3014c0 (patch) | |
tree | be689619cbd949685687634be902760b28a03460 /bin/dtas-enq | |
parent | 74804f4ccdcac362dc304c8d6dddd65a3dfcd226 (diff) | |
download | dtas-a27a6623449d00af838ba87319454d92dc3014c0.tar.gz |
This avoids compatibility problems as File.expand_path respects the "filesystem" encoding of Ruby. I'm not 100% sure this is correct, as Ruby encoding support still confuses me, but this fixes a problem where I attempted to add UTF-8 filename with non-US-ASCII characters in it on ruby-trunk.
Diffstat (limited to 'bin/dtas-enq')
-rwxr-xr-x | bin/dtas-enq | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/dtas-enq b/bin/dtas-enq index c18b684..4ab3c04 100755 --- a/bin/dtas-enq +++ b/bin/dtas-enq @@ -5,8 +5,7 @@ require 'dtas/unix_client' c = DTAS::UNIXClient.new ARGV.each do |path| - # Unix paths are encoding agnostic - path = File.expand_path(path.b) + path = File.expand_path(path) res = c.req_ok(%W(enq #{path})) puts "#{path} #{res}" end |