forked from rubyzip/rubyzip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set entry names encoding appropriately.
If we don't set this then we can't do things like file.exists?("Résumé.txt") without specifically forcing it to ASCII-8BIT, which is unnecessarily clunky: file.exists?("Résumé.txt".force_encoding("ASCII-8BIT")) This is because entry names are always read as ASCII-8BIT even if the EFS bit is set. This patch fixes that. Tests added/updated to make sure that this works for both files and streams.
- Loading branch information
Showing
3 changed files
with
25 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters