Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7352986

Browse files
committed
Merge pull request dotnet/coreclr#3809 from wtgodbe/utf8
Ported managed Utf8/Unicode encoder/decoder to C++ for usage in PAL Commit migrated from dotnet/coreclr@6932907
2 parents 9451229 + c9a3c21 commit 7352986

File tree

15 files changed

+3262
-494
lines changed

15 files changed

+3262
-494
lines changed

src/coreclr/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)