View Issue Details

IDProjectCategoryView StatusLast Update
0003969Far ManagerEditorpublic2022-12-11 17:50
Reportergyorokpeter Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx64OSWindows 
Product Version3.0 
Summary0003969: Incorrect display of files with UTF-8 characters in Windows Terminal
DescriptionWhen using the latest preview version of Windows Terminal (Version: 1.16.2642.0), opening a file containing UTF-8 multibyte characters (Chinese in my case) causes the lines to be incorrectly indented. This also completely breaks hex view which hinges on the content being properly aligned.
Steps To ReproducePoint to a.txt and press F3 or F4. Both cause the line alignment to be broken. In view mode, press F4 for hex view - that is also broken.
TagsNo tags attached.
Build

Activities

gyorokpeter

2022-11-27 16:56

reporter  

a.txt (125 bytes)   
aaaaaaaa 你好 bbbbbbbb
aaaaaaaa 你好 bbbbbbbb
aaaaaaaa 你好 bbbbbbbb
aaaaaaaa 你好 bbbbbbbb
aaaaaaaa 你好 bbbbbbbb
a.txt (125 bytes)   
f3.png (21,897 bytes)   
f3.png (21,897 bytes)   
f3hex.png (36,355 bytes)   
f3hex.png (36,355 bytes)   
f4.png (15,986 bytes)   
f4.png (15,986 bytes)   

gyorokpeter

2022-11-27 17:01

reporter   bugnote:0017361

Switching to ANSI/OEM mode is a workaround, although it makes the text illegible. This also requires unchecking "Autodetect code page" for both viewer and editor settings otherwise it will switch back to UTF-8 for every file not opened before.

DrKnS

2022-11-27 17:24

administrator   bugnote:0017362

Options, Interface settings

[x] Use Virtual Terminal for rendering
[x] Fullwidth-aware rendering

Ok, Shift+F9, restart Far.

gyorokpeter

2022-11-27 17:36

reporter   bugnote:0017363

That seems to work, why aren't these the default (at least if using Windows Terminal)?

DrKnS

2022-11-27 17:59

administrator   bugnote:0017364

Mostly because the fullwidth support is still rudimentary - we don't have that many East-Asian users unfortunately.

gyorokpeter

2022-11-27 18:00

reporter   bugnote:0017365

Another thing that I noticed is that after pressing OK in "Interface Settings" the color scheme changes to a darker one. But it's fixed after restarting.
dark.png (35,200 bytes)   
dark.png (35,200 bytes)   
normal.png (37,079 bytes)   
normal.png (37,079 bytes)   

DrKnS

2022-11-27 18:20

administrator   bugnote:0017366

The darker one is "classic" - it was the default for a quarter of a century or so until MS changed it in Windows 10. This has made a lot of people very angry and been widely regarded as a bad move, so now we override the palette by default (you can turn it off Options - Colors - Palette).

It is unexpected that "Interface Settings" affects the palette, could you provide the exact steps to reproduce it?

gyorokpeter

2022-11-27 18:52

reporter   bugnote:0017367

It just happens when I press OK on "Interface Settings". I'm not changing any settings. Also this is the only dialog that I found to trigger it.
ifsetting.png (63,385 bytes)   
ifsetting.png (63,385 bytes)   

DrKnS

2022-11-27 20:36

administrator   bugnote:0017368

Ok, that should be fixed now.

Regarding the initial issue: as I mentioned, full width support is still rather rudimentary so you might still notice various issues here and there. We know about them and things will get better with time.

gyorokpeter

2022-12-11 17:45

reporter   bugnote:0017370

Another case in which the color scheme changes is when executing any command via the built-in command line (even simple ones like cd).

gyorokpeter

2022-12-11 17:50

reporter   bugnote:0017371

Also an update on the original issue: even with those settings enabled, the highlight when searching for text in the viewer will be out of position.
f3highlight.png (17,139 bytes)   
f3highlight.png (17,139 bytes)   

Issue History

Date Modified Username Field Change
2022-11-27 16:56 gyorokpeter New Issue
2022-11-27 16:56 gyorokpeter File Added: a.txt
2022-11-27 16:56 gyorokpeter File Added: f3.png
2022-11-27 16:56 gyorokpeter File Added: f3hex.png
2022-11-27 16:56 gyorokpeter File Added: f4.png
2022-11-27 17:01 gyorokpeter Note Added: 0017361
2022-11-27 17:24 DrKnS Note Added: 0017362
2022-11-27 17:36 gyorokpeter Note Added: 0017363
2022-11-27 17:59 DrKnS Note Added: 0017364
2022-11-27 18:00 gyorokpeter Note Added: 0017365
2022-11-27 18:00 gyorokpeter File Added: dark.png
2022-11-27 18:00 gyorokpeter File Added: normal.png
2022-11-27 18:20 DrKnS Note Added: 0017366
2022-11-27 18:52 gyorokpeter Note Added: 0017367
2022-11-27 18:52 gyorokpeter File Added: ifsetting.png
2022-11-27 20:36 DrKnS Note Added: 0017368
2022-12-11 17:45 gyorokpeter Note Added: 0017370
2022-12-11 17:50 gyorokpeter Note Added: 0017371
2022-12-11 17:50 gyorokpeter File Added: f3highlight.png