-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Hexa editor display of binary files (#11747)
* fix Hexa editor display of binary files by: * reading file and blob with a better encoding * not touching/altering *blob* content (i.e not breaking content by reencoding) * not converting in ASCII before doing the Hexa editor display (it breaks char > 0x80) As a result, display is **exactly** the same obtained by using an external Hexa Editor: * Hexa value are accurate * string display is the same (except some cheating done by hexa editor for example with char 0x99 displayed as ™) * refactor display binary as hex dump * DRY * add display in MB (more human friendly) & translated
- Loading branch information
Showing
5 changed files
with
63 additions
and
40 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
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
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
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
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