- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mcview hex edit: can't enter certain UTF-8 characters #3260
Comments
Fix attached.
An is_printable() check was performed for every byte of the UTF-8 which obviously doesn't make sense. This check shouldn't be performed for 8-bit charsets either. If the given byte can arrive as input, the file should be modified accordingly. Updating the display should be another story, taking care of replacing non-printable characters.
The right-hand column is not updated properly, "printable" bytes are replaced by spaces, "non printable" bytes are replaced by dots. This is another problem, sounds like #3259. |
Fix |
Patch updated. The TAB key shouldn't be accepted as literal, to allow moving back to the hexview area. |
Friendly ping... a patch has been attached for 6 months now. Could you please take a look? It would be nice to release this fix along with the mcviewer rewrite. |
|
|
Important
This issue was migrated from Trac:
egmont
(@egmontkob)mcview, hex edit mode, in a fully UTF-8 environment.
Certain UTF-8 characters (e.g. á é í ó) can properly be entered, they overwrite two bytes.
Certain other UTF-8 characters (e.g. ő Á É Í Ó) only overwrite one byte, the second byte is swallowed.
Note
Original attachments:
egmont
(@egmontkob) onAug 30, 2014 at 21:01 UTC
The text was updated successfully, but these errors were encountered: