[GH-ISSUE #71] VirtualGui calls undeclared Unicode__() #42

Closed
opened 2026-05-05 03:35:45 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @izabala123 on GitHub (Apr 20, 2022).
Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/71

In Windows 10, when compiling uppweb, VirtualGui/Clip.cpp fails because Unicode__() is not declared.

In revision 2db6c3dfd declarations and definitions where removed.
In that revision, previous calls to Unicode__() where replaced in other locations. For example, in Win32Clip.cpp:

 static String sWText(const Value& data)
 {
-	return Unicode__(WString(data));
+	Vector<char16> h = ToUtf16(WString(data));
+	return String(h.begin(), sizeof(char16) * h.GetCount());
 }

Maybe something equivalent could be applied to VirtualGui.

Best regards
Iñaki

Originally created by @izabala123 on GitHub (Apr 20, 2022). Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/71 In Windows 10, when compiling uppweb, VirtualGui/Clip.cpp fails because Unicode__() is not declared. In revision 2db6c3dfd declarations and definitions where removed. In that revision, previous calls to Unicode__() where replaced in other locations. For example, in Win32Clip.cpp: ``` static String sWText(const Value& data) { - return Unicode__(WString(data)); + Vector<char16> h = ToUtf16(WString(data)); + return String(h.begin(), sizeof(char16) * h.GetCount()); } ``` Maybe something equivalent could be applied to VirtualGui. Best regards Iñaki
Author
Owner

@mirek-fidler commented on GitHub (Apr 21, 2022):

Thanks, hopefully fixed.

<!-- gh-comment-id:1104959237 --> @mirek-fidler commented on GitHub (Apr 21, 2022): Thanks, hopefully fixed.
Author
Owner

@izabala123 commented on GitHub (Apr 21, 2022):

Excellent. Thank you!

<!-- gh-comment-id:1105309725 --> @izabala123 commented on GitHub (Apr 21, 2022): Excellent. Thank you!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#42
No description provided.