View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000854 | Far Manager | Viewer | public | 2009-05-05 00:50 | 2009-05-05 09:20 |
Reporter | alexmitin | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Platform | x86 | OS | Windows | OS Version | XP SP3 |
Summary | 0000854: Hex view shows wrong hex values for the UTF-8 encoded files | ||||
Description | The hex view shows wrong hex values. | ||||
Steps To Reproduce | 1) Open any of the following files in the internal viewer (F3 or Alt+F3): FarCze.lng FarEng.lng FarGer.lng FarHun.lng FarPol.lng FarRus.lng Note: these files are from the night builds. They all have UTF-8 encoding. 2) Switch to hex view (F4). The text on the right is OK. However the hex values are wrong. All hex values are 0xBA. 3) Press F4 twice. The hex values change to 0x00. 4) Scroll down (PgDn). Some hex values are still 0x00, some are 0xBA. | ||||
Tags | No tags attached. | ||||
Build | 0 | ||||
|
В общем тут есть такое (цитата): "А зачем в Viewer::ShowHex() вызывается вот это: WideCharToMultiByte(VM.CodePage, 0, (const wchar_t*)&Ch,1, &NewCh,1," ",NULL); после чего печатается 16-ричный код NewCh (который для файлв в utf8 может принимать любое значение, зависящее от положения луны, погодных условий и пр.)" возможно это и лечение. "возможно" - потому, что пока не пойму на что оно может повлиять. alexmitin: закомменть эту строку и попытайся "исследовать" на что оно повлияет :-) |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-05-05 00:50 | alexmitin | New Issue | |
2009-05-05 09:11 | vskirdin | Relationship added | duplicate of 0000752 |
2009-05-05 09:13 | alexy | Build | => 0 |
2009-05-05 09:13 | alexy | Status | new => closed |
2009-05-05 09:13 | alexy | Resolution | open => duplicate |
2009-05-05 09:20 | vskirdin | Note Added: 0003110 |