TMPHexEditor can't show national characters (with codes >127) correctly.
Bug #794055 reported by
Stanley
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Delphi Code Revival |
Incomplete
|
Medium
|
CCRDude |
Bug Description
Original TMPHexEditor and dcrHexEditor can't show Russian letters correctly. Fix: in dcrHexEditor, at line 5857 replace
LWChrOutput := WideChar(
to
TmpChar := TranslateToAnsi
MultiByteToWide
Also, it's impossible to enter chars with codes>126 and <32 from keyboard.
To post a comment you must log in.
Thanks a lot for this report.
Your suggestions is a workaround, granted, but I think this problem should be accessed in a different way.
TranslateToAnsiChar returns an AnsiChar, but should be updated to return a WideChar instead. Plus, any conversions should take place there (or in its replacement), or by the conversion integrated into newer Delphi's data types.
Could you attach:
1. A simple native codepage russian text sample?
2. The same saved as UTF-8?
A single line with some text should be sufficient, and that way I could test the display myself.