Use UTF-8 with MSVC and for string literals (PR #25549)

22 views
Skip to first unread message

VZ

unread,
Jun 19, 2025, 7:10:20 PM6/19/25
to wx-...@googlegroups.com, Subscribed

Replaces #25373.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/25549

Commit Summary

  • 1c79dbc Always interpret sources used in MSVS projects as UTF-8
  • d6dba57 Always use /utf-8 with MSVS when using CMake too
  • ee35859 Replace hex and octal escapes with literal UTF-8 characters

File Changes

(17 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25549@github.com>

Maarten

unread,
Jun 19, 2025, 8:01:38 PM6/19/25
to wx-...@googlegroups.com, Subscribed
MaartenBent left a comment (wxWidgets/wxWidgets#25549)

AppVeyors Visual Studio 2015 seems to fail on tests that are missing wxString::FromUTF8().


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25549/c2989437893@github.com>

Kumazuma

unread,
Jun 20, 2025, 10:04:54 AM6/20/25
to wx-...@googlegroups.com, Subscribed
Kumazuma left a comment (wxWidgets/wxWidgets#25549)

It looks good to me.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25549/c2991762622@github.com>

VZ

unread,
Jun 20, 2025, 11:44:24 AM6/20/25
to wx-...@googlegroups.com, Push

@vadz pushed 1 commit.

  • b672131 Replace hex and octal escapes with literal UTF-8 characters


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25549/before/ee35859c23f3696d68240bd86e3646eb14d66128/after/b672131185211556a3a617065d387a7619f273b0@github.com>

VZ

unread,
Jun 20, 2025, 11:45:16 AM6/20/25
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25549)

AppVeyors Visual Studio 2015 seems to fail on tests that are missing wxString::FromUTF8().

It looks like it doesn't handle Unicode characters in the wide strings, I've tried to work around it just for it. But maybe we should just drop support for it, anecdotally it seems that some people still use MSVS 2017 but I don't know anybody still using 2015...


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25549/c2992105377@github.com>

VZ

unread,
Jun 22, 2025, 2:51:31 PM6/22/25
to wx-...@googlegroups.com, Subscribed

Merged #25549 into master.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25549/issue_event/18262264036@github.com>

Reply all
Reply to author
Forward
0 new messages