From 101bdf05d0f46193771b2f2be1cd20ada51fed0a Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 7 Nov 2010 10:08:46 +0000 Subject: [PATCH] * Use BUnicodeChar to decide if a character is space. This is slightly better than considering only ascii space. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39341 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/readonlybootprompt/BootPromptWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/readonlybootprompt/BootPromptWindow.cpp b/src/apps/readonlybootprompt/BootPromptWindow.cpp index 012a72a140..1147979826 100644 --- a/src/apps/readonlybootprompt/BootPromptWindow.cpp +++ b/src/apps/readonlybootprompt/BootPromptWindow.cpp @@ -150,7 +150,8 @@ class TextBitmapView : public BView // text (right after the last space we saw). while (*currentChar != '\0') { - if (*currentChar == ' ') { + if (BUnicodeChar::IsWhitespace(BUnicodeChar::FromUTF8( + currentChar))) { // TODO : we should also handle other kinds of whitespace. // Chinese seems to use a different one. ICU has proper // support for it.