fix another stupid char while saving

This commit is contained in:
Ward Wouts 2005-12-30 09:28:57 +00:00
parent f4ffc6423e
commit 9e4bf9eba4

View file

@ -94,6 +94,8 @@ def save_file(dir, name, data)
if @config[group].has_key?("ASCIIFILENAMES") && @config[group]["ASCIIFILENAMES"]
require 'iconv'
nname = Iconv.conv("ASCII//TRANSLIT", "UTF-8", nname)
# shit that gets through...
nname.gsub!('#{146.chr}', "")
end
### nname.gsub!(/Ä/, "A"); nname.gsub!(/ä/, "a")
### nname.gsub!(/Á/, "A"); nname.gsub!(/á/, "a")