From 62b7d7ae0cb57d27932ce290ac5085c7e8daa5a2 Mon Sep 17 00:00:00 2001 From: ntrifunovic Date: Sun, 17 Feb 2013 22:40:46 +0000 Subject: [PATCH] Release 2.3.4 git-svn-id: http://svn.code.sf.net/p/utfcpp/code@138 a809a056-fc17-0410-9590-b4f493f8b08e --- v2_0/doc/ReleaseNotes | 4 +++- v2_0/source/utf8/checked.h | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/v2_0/doc/ReleaseNotes b/v2_0/doc/ReleaseNotes index c7e54b3..364411a 100644 --- a/v2_0/doc/ReleaseNotes +++ b/v2_0/doc/ReleaseNotes @@ -1,8 +1,10 @@ utf8 cpp library -Release 2.3.3 +Release 2.3.4 A minor bug fix release. Thanks to all who reported bugs. +Note: Version 2.3.3 contained a regression, and therefore was removed. + Changes from version 2.3.2 - Bug fix [39]: checked.h Line 273 and unchecked.h Line 182 have an extra ';' - Bug fix [36]: replace_invalid() only works with back_inserter diff --git a/v2_0/source/utf8/checked.h b/v2_0/source/utf8/checked.h index cc1ec47..1331155 100644 --- a/v2_0/source/utf8/checked.h +++ b/v2_0/source/utf8/checked.h @@ -233,7 +233,7 @@ namespace utf8 template u16bit_iterator utf8to16 (octet_iterator start, octet_iterator end, u16bit_iterator result) { - while (start < end) { + while (start != end) { uint32_t cp = utf8::next(start, end); if (cp > 0xffff) { //make a surrogate pair *result++ = static_cast((cp >> 10) + internal::LEAD_OFFSET); @@ -257,7 +257,7 @@ namespace utf8 template u32bit_iterator utf8to32 (octet_iterator start, octet_iterator end, u32bit_iterator result) { - while (start < end) + while (start != end) (*result++) = utf8::next(start, end); return result;