Permalink
Browse files

mingw ruby187 does not recognise utf8

  • Loading branch information...
2potatocakes committed Feb 6, 2012
1 parent f826268 commit 26ec16866e8129449919603ef4c3711855d4dce7
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/zip/zip_entry.rb
View
@@ -62,7 +62,7 @@ class ZipEntry
# Returns the character encoding used for name and comment
def name_encoding
(@gp_flags & 0b100000000000) != 0 ? "utf8" : "CP437//"
(@gp_flags & 0b100000000000) != 0 ? "UTF-8" : "CP437//"
end
# Returns the name in the encoding specified by enc
@@ -140,7 +140,7 @@ def time
if @extra["UniversalTime"]
@extra["UniversalTime"].mtime
else
# Atandard time field in central directory has local time
# Standard time field in central directory has local time
# under archive creator. Then, we can't get timezone.
@time
end
@@ -635,4 +635,4 @@ def create_symlink(destPath)
# Copyright (C) 2002, 2003 Thomas Sondergaard
# rubyzip is free software; you can redistribute it and/or
# modify it under the terms of the ruby license.
# modify it under the terms of the ruby license.

0 comments on commit 26ec168

Please sign in to comment.