https://bugs.winehq.org/show_bug.cgi?id=55868
Bug ID: 55868 Summary: Horizontal tab character (ASCII 0x09) not rendered in text fields Product: Wine Version: 5.0.3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: vojtech.turek@hotmail.cz Distribution: ---
Created attachment 75394 --> https://bugs.winehq.org/attachment.cgi?id=75394 Wine vs. Windows: the text field contains two horizontal tab characters, none of which are rendered by Wine
If a text field contains horizontal tab (ASCII 0x09) characters, these are not rendered.
See the attached screenshot from Wine 5.0.3 (left) and the same application running under Windows 10 x64 (right). The field value is "<HT>www.test.org<HT>x" ("<HT>" denotes a single horizontal tab character), yet Wine shows just "www.test.orgx" in the field. However, Wine clearly knows the horizontal tab characters are present, because it shows them in the text field tooltip stating (in English) "Website address<NEW LINE>[<TEXT FIELD VALUE>]".
Installing corefonts via winetricks (as recommended in bug #45316) does not lead to any improvement.
https://bugs.winehq.org/show_bug.cgi?id=55868
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #1 from joaopa jeremielapuree@yahoo.fr --- There is no interest to report bugs against so old wine versions. Currently, it is wine-8.19. Please upgrade to this latest version and if the bug persists, please attach new screenshots and console output.
https://bugs.winehq.org/show_bug.cgi?id=55868
--- Comment #2 from vt vojtech.turek@hotmail.cz --- Ok, no problem, thanks. Version 5.0.3 is the Wine version available in the default repositories of the latest Devuan distribution ("daedalus").
I have updated Wine using the official WineHQ repository to v.8.0.2. However, now I am not able to run the respective Windows application at all -- not even with a fresh WINEPREFIX. All I get is the following terminal output:
$ WINEPREFIX="/home/user/.wine-new" wine "/home/user/.wine-new/drive_c/users/user/AppData/Roaming/App Name/app.exe" 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0024:fixme:thread:GetThreadUILanguage : stub, returning default language. 0024:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 00E7D9BC, 00000000 00E7D9E4 0024:fixme:nls:get_dummy_preferred_ui_language (0x38 0x405 00E7D9BC 00000000 00E7D9E4) returning a dummy value (current locale) 0024:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 00E7D9BC, 04CD19B0 00E7D9E4 0024:fixme:nls:get_dummy_preferred_ui_language (0x38 0x405 00E7D9BC 04CD19B0 00E7D9E4) returning a dummy value (current locale) 0024:fixme:wtsapi:WTSRegisterSessionNotification Stub 0001007E 0x00000000 0024:fixme:uxtheme:BufferedPaintInit Stub () 0024:err:seh:NtRaiseException Exception frame is not in stack limits => unable to dispatch exception.
Changing the Windows version using winecfg does not make any difference in terms of the terminal output. I really have no idea what might be wrong.
I will post back if I manage to get the application running under Wine v.8.0.2.
https://bugs.winehq.org/show_bug.cgi?id=55868
--- Comment #3 from vt vturek@centrum.cz --- To save time, I created a Ubuntu 23.10.1 virtual machine, installed Wine from the official repository using the steps from https://wiki.winehq.org/Ubuntu .
The result is identical -- please see the new screenshot.
https://bugs.winehq.org/show_bug.cgi?id=55868
--- Comment #4 from vt vturek@centrum.cz --- Created attachment 75396 --> https://bugs.winehq.org/attachment.cgi?id=75396 Problem replicated in Wine v.8.0.2
https://bugs.winehq.org/show_bug.cgi?id=55868
--- Comment #5 from joaopa jeremielapuree@yahoo.fr --- What is the application. Is there a free downloadable trial to test the problem?
https://bugs.winehq.org/show_bug.cgi?id=55868
--- Comment #6 from vt vturek@centrum.cz --- Unfortunately not, it is an in-house software.
I will try to replicate the problem in some other application and then post back.
https://bugs.winehq.org/show_bug.cgi?id=55868
--- Comment #7 from vt vturek@centrum.cz --- You can test this, e.g., in Bulk Rename Utility ( https://www.bulkrenameutility.co.uk/Download.php ; there is a portable version: https://www.bulkrenameutility.co.uk/Download.php#DownloadPortable ).
In the latest screenshot, you can see what happened when I copied the text "<HT>test<HT>abc" ("<HT>" == horizontal tab character) from the default Ubuntu notepad into the indicated text field.
Just as in the case of the original (in-house) application, the horizontal tabs are not rendered in the text field, yet are visible in the tooltip (i.e., the field value includes them).
https://bugs.winehq.org/show_bug.cgi?id=55868
--- Comment #8 from vt vturek@centrum.cz --- Created attachment 75397 --> https://bugs.winehq.org/attachment.cgi?id=75397 Problem replicated using a different application (Bulk Rename Utility)
https://bugs.winehq.org/show_bug.cgi?id=55868
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #9 from Bernhard Übelacker bernhardu@mailbox.org --- Created attachment 76819 --> https://bugs.winehq.org/attachment.cgi?id=76819 0001-user32-comctl32-gdi32-Improve-rendering-of-tab-chara.patch
I tried replacing tab characters in Notepad++ with the replace dialog and found the tab character not being rendered unlinke in windows.
I rembembered there was a similar issue in multi line edit controls some time ago in bug #33834.
The easiest way to reproduce this issue is by these steps, I think: start `wine notepad` enter <tab>test<tab>test select all by ctrl+a and copy it to clipboard by ctrl+c open search dialog by ctrl+f paste text containing tabs by ctrl+v
Above steps tested with notepad in: - Windows XP: shows a "Replacement glyph" (a rectangle) instead of tabs - Windows 10: shows an "empty room", even with a wine notepad
It looks like there are similar edit controls in comctl32 (notepad, notepad++) and user32 (Bulk Renamer).
Attached patch modifies user32/comctl32/gdi32, so I am not sure which component would be right.
This patch shows at least one flaw, because after pasting text with a tab the cursor is rendered at the wrong position. (In the middle of the last word, not at the end.)
@vt: If you are familiar with building wine, you probably could test this patch and confirm if it changes rendering for your application.
https://bugs.winehq.org/show_bug.cgi?id=55868
--- Comment #10 from vt vturek@centrum.cz --- Thank you for providing the patch.
I have never built Wine from source, but I might give it a try. I'll report back if I manage to do so in a new VM.
https://bugs.winehq.org/show_bug.cgi?id=55868
--- Comment #11 from vt vturek@centrum.cz --- (In reply to Bernhard Übelacker from comment #9)
With the patch applied, the horizontal tab characters are rendered -- in some fields/applications properly, in others as rectangles (just as you mention in your comment). But they _do_ render, which is better than not rendering them at all.
My Wine config only used "Windows 10" so this nuisance may be related to the actual component used by the respective application. I have observed it even in winecfg (e.g., on the Disks tab -- see the attached screenshot with the pasted text copied from Featherpad).
This patch shows at least one flaw, because after pasting text with a tab the cursor is rendered at the wrong position. (In the middle of the last word, not at the end.)
True. The cursor placement is also wrong when deleting characters in a field containing horizontal tab(s) using DELETE or BACKSPACE irrespective of whether a "regular" character or a horizontal tab has just been deleted.
https://bugs.winehq.org/show_bug.cgi?id=55868
--- Comment #12 from vt vturek@centrum.cz --- Created attachment 76821 --> https://bugs.winehq.org/attachment.cgi?id=76821 Tab rendering in winecfg after the patch has been applied