Skip to content

int: Remove deprecated std::codecvt from strutil.cpp internals#5107

Open
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-codecvt
Open

int: Remove deprecated std::codecvt from strutil.cpp internals#5107
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-codecvt

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Mar 22, 2026

For the sake of Windows' need for wstring filenames, we do some utf8<->utf16 conversion in strutil.cpp. That has always used the std::codecvt set of functions, but they have been deprecated beginning in C++17 and will be removed entirely in C++26, so their days are numbered and we already have to suppress warnings to get the compiler to shut up about it.

Assisted-by: Claude Code / Opus 4.6

For the sake of Windows' need for wstring filenames, we do some
utf8<->utf16 conversion in strutil.cpp. That has always used the
std::codecvt set of functions, but they have been deprecated beginning
in C++17 and will be removed entirely in C++26, so their days are
numbered and we already have to suppress warnings to get the compiler
to shut up about it.

Assisted-by: Claude Code / Opus 4.6

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant