[PR #385] Fixed EFS flag handling #1002

Closed
opened 2026-01-29 22:18:33 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/385

State: closed
Merged: Yes


Fixed ArchiveEncoding to use CP437 as default encoding and UTF8 in case when Language encoding flag (EFS) is set.

Fixed DirectoryEntryHeader Name/Comment decoding to use ArchiveEncoding's Forced/Default/CustomEncoder if EFS flag is not set.

Tests fixed to use explicit use of 866 encoding because of file named in Russian usage in several tests.

**Original Pull Request:** https://github.com/adamhathcock/sharpcompress/pull/385 **State:** closed **Merged:** Yes --- Fixed ArchiveEncoding to use CP437 as default encoding and UTF8 in case when Language encoding flag (EFS) is set. Fixed DirectoryEntryHeader Name/Comment decoding to use ArchiveEncoding's Forced/Default/CustomEncoder if EFS flag is not set. Tests fixed to use explicit use of 866 encoding because of file named in Russian usage in several tests.
claunia added the pull-request label 2026-01-29 22:18:33 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1002