http://bugs.winehq.org/show_bug.cgi?id=36720
Bug ID: 36720 Summary: LCMapString with the parameter NORM_IGNORENONSPACE does not remove diacritics Product: Wine Version: 1.6.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: mterrisse@free.fr
Created attachment 48766 --> http://bugs.winehq.org/attachment.cgi?id=48766 Source and binary to reproduce a bug in Wine implementation of LCMapString
Hello,
Working on Windows I use LCMapString with the parameter NORM_IGNORENONSPACE to remove diacritics (e.g. accents) from a string and it works fine.
But I tested on Wine (1.6.2, Ubuntu) and it does not remove the diacritics from the string (the string is unchanged).
This bug impacts this software http://appdb.winehq.org/objectManager.php?sClass=application&iId=6654 On the next version of the product, a client running on Wine cannot connect to a server running on Windows if the login contains diacritics.
I attach a small project to reproduce the problem. It is written in Pascal (Delphi) but can be easily converted to another language.
http://bugs.winehq.org/show_bug.cgi?id=36720
Michel Terrisse mterrisse@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mterrisse@free.fr
https://bugs.winehq.org/show_bug.cgi?id=36720
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
http://bugs.winehq.org/show_bug.cgi?id=36720
--- Comment #1 from Michel Terrisse mterrisse@free.fr --- I could find a workaround : - call FoldString (MAP_COMPOSITE) - call LCMapString (NORM_IGNORENONSPACE) - call FoldString (MAP_PRECOMPOSED)
It works fine
https://bugs.winehq.org/show_bug.cgi?id=36720
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #2 from super_man@post.com --- fixme:thread:GetThreadUILanguage : stub, returning default language. fixme:thread:GetThreadPreferredUILanguages 56, 0x33d900, (nil) 0x33d928 fixme:thread:GetThreadPreferredUILanguages 56, 0x33d900, (nil) 0x33d928 This program calls LCMapStringW (L"àçéèêëù", NORM_IGNORENONSPACE) and expects it returns L"aceeeeu" Size of the transformed string: 7 (expecting 7) Transformed string: àçéèêëù (expecting aceeeeu) Press Enter to exit...
it's still an issue 1.7.50
https://bugs.winehq.org/show_bug.cgi?id=36720
--- Comment #3 from super_man@post.com --- The problem is somewhere here...
http://source.winehq.org/git/wine.git/blob/966a07149a029191d3d9ba010e5bcb8cc...
https://bugs.winehq.org/show_bug.cgi?id=36720
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #4 from Gijs Vermeulen gijsvrm@gmail.com --- Still present in wine-5.15.
https://bugs.winehq.org/show_bug.cgi?id=36720
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |5dee0ed75502e0295d09e39d8a8 | |0d02954702212
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- It should be fixed by 5dee0ed75502e0295d09e39d8a80d02954702212.
https://bugs.winehq.org/show_bug.cgi?id=36720
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.11.