audk/StdLib/LibC/Locale
darylm503 5a5221122b StdLib/LibC/Locale/multibyte_Utf8.c: Fix obscure corner cases in wide to multibyte and multibyte to wide character conversions. The majority of problems center around the interpretation of the Length or Limit parameter when the Destination parameter is NULL.
DecodeOneStateful: Properly handle combinations of Src, Dest, or Len being NULL or 0.

EncodeUtf8: Do not zero-terminate the result string in this worker function.

mbsrtowcs: Remove test for **src == '\0', as per ISO/IEC 9899:199409.  Allows "".

wcsrtombs:  The C Language standard, ISO/IEC 9899:199409, states that the wcsrtombs() function will stop before encountering the terminating NUL character only if Dest is NOT NULL.  This implies that if Dest is NULL, the Limit parameter will be ignored.  In order to avoid system hangs, if Dest is NULL a Limit value of ASCII_STRING_MAX is automatically used.  Also fixed a typo in the function header comment.

With these changes, StdLib now passes all of the C Language Standards Compliance Tests for ISO/IEC 9899:199409 (C95).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by:  daryl.mcdaniel@intel.com
Reviewed-by:    erik.c.bjorge@intel.com


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14358 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-15 01:59:11 +00:00
..
Locale.inf StdLib: Add multi-byte character support. The normal "narrow" character set is now UTF-8 instead of ASCII. 2012-06-15 19:58:39 +00:00
__mb_cur_max.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
__wctoint.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
_def_messages.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
_def_monetary.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
_def_numeric.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
_def_time.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
_wcstod.h StdLib: Fix printf issues with floating point and wide character strings. Also resolves a compilation issue with VS2010. See ISSUES.txt items 1, 11. 2013-03-11 18:00:30 +00:00
_wcstol.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
_wcstoul.h Add Socket Libraries. 2011-07-30 00:30:44 +00:00
aliasname.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
aliasname_local.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
ctypeio.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
ctypeio.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
iswctype_sb.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
localeconv.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
multibyte_Utf8.c StdLib/LibC/Locale/multibyte_Utf8.c: Fix obscure corner cases in wide to multibyte and multibyte to wide character conversions. The majority of problems center around the interpretation of the Length or Limit parameter when the Destination parameter is NULL. 2013-05-15 01:59:11 +00:00
multibyte_sb.c Add Socket Libraries. 2011-07-30 00:30:44 +00:00
nl_langinfo.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
rune.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
runetype.h Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
setlocale.c StdLib: Add isDirSep character classification macro and function. Implement several Posix functions and clean up EfiSysCall.h. Align file mode handling with UEFI file protocol flags. 2011-11-30 00:52:45 +00:00
setlocale1.c Update or add comments to files and functions for use by Doxygen. 2011-08-05 23:02:43 +00:00
setlocale32.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcscoll.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcsftime.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcstod.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcstof.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcstoimax.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcstol.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcstold.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcstoll.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcstoul.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcstoull.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcstoumax.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00
wcsxfrm.c Standard Libraries for EDK II. 2011-04-27 21:42:16 +00:00