From: drh Date: Mon, 19 Feb 2018 22:46:19 +0000 (+0000) Subject: Enhance the string formatter (used by printf()) so that the width and X-Git-Tag: version-3.23.0~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57a93fa38c7a1d1b3f7a2c86e42e15202253231f;p=thirdparty%2Fsqlite.git Enhance the string formatter (used by printf()) so that the width and precision of string substitution operators refer to characters instead of bytes when the alternate-form-2 flag ("!") is used. Also fix the %c substition to always work within unicode, regardless of the alternate-form-2 flag. FossilOrigin-Name: c883c4d33f4cd722982aca17eeb355d19eeed793991d923b5494d173b1d0c73a --- 57a93fa38c7a1d1b3f7a2c86e42e15202253231f diff --cc manifest index ea203fe2f3,5fae45a4a2..2e00962c43 --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Only\stry\sto\suse\sthe\sgeteuid()\sinterface\son\sunix\sif\sHAVE_FCHOWN\sis\sdefined.\nThis\sfixes\sthe\sbuild\sfor\svxWorks,\swe\sare\stold. - D 2018-02-19T16:34:31.891 -C Printing\sa\svalue\sof\s0\susing\s%c\sterminates\sthe\sstring. -D 2018-02-19T21:58:16.694 ++C Enhance\sthe\sstring\sformatter\s(used\sby\sprintf())\sso\sthat\sthe\swidth\sand\nprecision\sof\sstring\ssubstitution\soperators\srefer\sto\scharacters\sinstead\sof\nbytes\swhen\sthe\salternate-form-2\sflag\s("!")\sis\sused.\s\sAlso\sfix\sthe\s%c\nsubstition\sto\salways\swork\swithin\sunicode,\sregardless\sof\sthe\s\nalternate-form-2\sflag. ++D 2018-02-19T22:46:19.020 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F Makefile.in 7a3f714b4fcf793108042b7b0a5c720b0b310ec84314d61ba7f3f49f27e550ea @@@ -1707,7 -1707,7 +1707,8 @@@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a9 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 - P 88258770adead70fa101c74e266a37bb9aaffac0ba738a4b345617feb8c46477 - R 2e4bdb0c045376ff7154d29ff239bf61 -P ac188211119bfd77f43e4aba8acab733a56aac90b4c8a11f7ef8e6388582438f ++P 38f654dc117bb11d61407327884b5c913cfaf920547bebc4ce5a4cf983e5c20e 255612f0a131f2f522cbca3cc5a1edcf7e38938abca25ba421e7e38a422db9c9 + R 508c3db0e2913d65a43c01bb9b80f5ab ++T +closed 255612f0a131f2f522cbca3cc5a1edcf7e38938abca25ba421e7e38a422db9c9 U drh - Z 37b9f8fa92af1d03e78cb9f20faaf7e7 -Z 626afeea462f05f2075e81e36cf30b70 ++Z 1886f73e61ed30038df9856ac6df181f diff --cc manifest.uuid index f3e38fcfac,3b60577eae..25a24484fc --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - 38f654dc117bb11d61407327884b5c913cfaf920547bebc4ce5a4cf983e5c20e -255612f0a131f2f522cbca3cc5a1edcf7e38938abca25ba421e7e38a422db9c9 ++c883c4d33f4cd722982aca17eeb355d19eeed793991d923b5494d173b1d0c73a