Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 6932907

Browse files
committed
Merge pull request #3809 from wtgodbe/utf8
Ported managed Utf8/Unicode encoder/decoder to C++ for usage in PAL
2 parents 1a9eb1c + eef4ca5 commit 6932907

File tree

15 files changed

+3262
-494
lines changed

15 files changed

+3262
-494
lines changed

src/pal/src/locale/unicode.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,10 @@ WideCharToMultiByte(
928928
{
929929
CFRelease(cfString);
930930
}
931+
#else /*HAVE_COREFOUNDATION */
932+
ERROR( "This code page is not in the system.\n" );
933+
SetLastError( ERROR_INVALID_PARAMETER );
934+
goto EXIT;
931935
#endif /* HAVE_COREFOUNDATION */
932936

933937
EXIT:

0 commit comments

Comments
 (0)