From a722064d805e27e034357bd92d95b5c58ca7f474 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 29 Apr 2011 19:41:18 -0400 Subject: [PATCH] I18N - Reviewed UTF8-safety. --- src/text.cpp | 2 +- src/utf8.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/text.cpp b/src/text.cpp index d22c9c2dd..badea65e4 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -51,7 +51,7 @@ void wrapText ( std::string copy = text; std::string line; - while (copy.length ()) + while (copy.length ()) // Used as Boolean, therefore UTF8 safe. { extractLine (copy, line, width); lines.push_back (line); diff --git a/src/utf8.cpp b/src/utf8.cpp index 6d059a679..0e3bee35f 100644 --- a/src/utf8.cpp +++ b/src/utf8.cpp @@ -99,7 +99,6 @@ unsigned int utf8_next_char (const std::string& input, std::string::size_type& i ((input[i++] & 0x3F) << 6) + (input[i++] & 0x3F); - // Default: pretend as though it's a single character. // TODO Or should this throw? return input[i++];