Home » Community » U++ community news and announcements » 2022.3rc5
Re: 2022.3rc4 [message #59426 is a reply to message #59424] |
Sat, 24 December 2022 13:13 |
|
Klugier
Messages: 1077 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Lindquist and Mirek,
Thank you for raising this issue! I confirm that this issue is critical in the context of release. It is with us since 2022.1 when we introduced wchar that is 4 bytes length. The problem is that winapi requires 2 bytes instead of 4 bytes. The problem is with AppendFiles:
void AppendFiles(VectorMap<String, ClipData>& clip, const Vector<String>& files)
{
WString wfiles;
for(int i = 0; i < files.GetCount(); i++)
wfiles << files[i].ToWString() << (wchar)0;
sDROPFILES h;
h.unicode = true;
h.offset = sizeof(h);
GetCursorPos(&h.pt);
h.nc = TRUE;
String data;
data.Cat((byte *)&h, sizeof(h));
data.Cat((byte *)~wfiles, 2 * (wfiles.GetCount() + 1)); // Windows wants 2 bytes unicode string instead of 4 bytes we are providing
clip.GetAdd("files") = ClipData(data);
}
Mirek, you should be able to propose the best solution here since you know the WString 4 bytes internals very well. I would opt for something like using ToSystemCharset on files to make sure that we have proper encoding.
The bug can be reproduce with reference/DropFiles example. In this case you can not drop files from the window.
The issue is only reproduce on Windows.
Klugier
U++ - one framework to rule them all.
[Updated on: Sat, 24 December 2022 13:14] Report message to a moderator
|
|
|
|
|
2022.3rc5
By: mirek on Fri, 23 December 2022 09:52
|
|
|
Re: 2022.3rc4
By: Tom1 on Fri, 23 December 2022 11:51
|
|
|
Re: 2022.3rc4
By: Klugier on Fri, 23 December 2022 13:45
|
|
|
Re: 2022.3rc4
By: Tom1 on Fri, 23 December 2022 14:37
|
|
|
Re: 2022.3rc4
|
|
|
Re: 2022.3rc4
|
|
|
Re: 2022.3rc4
By: Oblivion on Sat, 24 December 2022 12:25
|
|
|
Re: 2022.3rc4
By: Klugier on Sat, 24 December 2022 13:13
|
|
|
Re: 2022.3rc4
By: mirek on Sat, 24 December 2022 15:23
|
|
|
Re: 2022.3rc5
|
|
|
Re: 2022.3rc5
|
|
|
Re: 2022.3rc5
By: Klugier on Mon, 26 December 2022 22:44
|
|
|
Re: 2022.3rc5
By: mirek on Tue, 27 December 2022 12:23
|
|
|
Re: 2022.3rc5
By: Klugier on Tue, 27 December 2022 13:48
|
|
|
Re: 2022.3rc5
By: Oblivion on Mon, 26 December 2022 23:49
|
|
|
Re: 2022.3rc5
By: mirek on Tue, 27 December 2022 09:49
|
|
|
Re: 2022.3rc5
By: mirek on Tue, 27 December 2022 09:51
|
|
|
Re: 2022.3rc5
By: Oblivion on Sun, 05 February 2023 16:36
|
|
|
Re: 2022.3rc5
By: mirek on Sun, 05 February 2023 17:00
|
|
|
Re: 2022.3rc5
By: Oblivion on Mon, 06 February 2023 23:34
|
|
|
Re: 2022.3rc5
By: mirek on Tue, 07 February 2023 00:16
|
|
|
Re: 2022.3rc5
By: Oblivion on Wed, 08 February 2023 17:55
|
|
|
Re: 2022.3rc5
By: mirek on Wed, 08 February 2023 20:01
|
|
|
Re: 2022.3rc5
By: Oblivion on Wed, 08 February 2023 20:33
|
|
|
Re: 2022.3rc5
By: Oblivion on Thu, 09 February 2023 17:41
|
|
|
Re: 2022.3rc5
By: mirek on Thu, 09 February 2023 19:16
|
|
|
Re: 2022.3rc5
By: Oblivion on Thu, 09 February 2023 23:20
|
|
|
Re: 2022.3rc5
By: mirek on Fri, 10 February 2023 08:49
|
|
|
Re: 2022.3rc5
By: Oblivion on Fri, 10 February 2023 21:45
|
|
|
Re: 2022.3rc5
By: mirek on Fri, 10 February 2023 23:44
|
|
|
Re: 2022.3rc5
By: Oblivion on Sat, 11 February 2023 07:48
|
|
|
Re: 2022.3rc5
By: Silvan on Mon, 13 February 2023 11:21
|
|
|
Re: 2022.3rc5
By: mirek on Sun, 19 February 2023 10:06
|
|
|
Re: 2022.3rc5
By: Oblivion on Wed, 08 February 2023 20:50
|
|
|
Re: 2022.3rc5
By: Silvan on Thu, 09 February 2023 21:05
|
Goto Forum:
Current Time: Thu Jun 06 07:24:15 CEST 2024
Total time taken to generate the page: 0.01777 seconds
|