From a27a6623449d00af838ba87319454d92dc3014c0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 16 Aug 2014 23:38:05 +0000 Subject: rely on filesystem encoding 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. --- bin/dtas-cueedit | 2 -- 1 file changed, 2 deletions(-) (limited to 'bin/dtas-cueedit') diff --git a/bin/dtas-cueedit b/bin/dtas-cueedit index 3677e7a..04922ef 100755 --- a/bin/dtas-cueedit +++ b/bin/dtas-cueedit @@ -24,8 +24,6 @@ def tmpfile(file, suffix) end ARGV.each do |file| - # Unix paths are encoding agnostic - file = file.b file =~ /\.flac\z/i or warn "Unsupported suffix, assuming FLAC" tmp = tmpfile(file, '.cue') begin -- cgit v1.2.3-24-ge0c7