From 8de794b1d52de9313b9c617ad1c04ec89036dbe3 Mon Sep 17 00:00:00 2001 From: "cira@chromium.org" Date: Sat, 7 Nov 2009 02:08:06 +0000 Subject: We shouldn't use BIDI_DEFAULT_(RTL|LTR) if we know the directionality of the page, because we won't like the result if string is mixed bidi (it may mark string as RTL instead of LTR if it starts with strong RTL characters, even if the global direction is LTR). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TEST=Try entering Hebrew query in omnibox - Google Search text in suggested results should always be after "-" not within a string (visible on items from history, so you need to click on one result first). Try typing "אהרון" in omnibox. Review URL: http://codereview.chromium.org/372041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31358 0039d316-1c4b-4281-b951-d872f2087c98 --- app/l10n_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/l10n_util.cc') diff --git a/app/l10n_util.cc b/app/l10n_util.cc index c04d3d5..07fbca8 100644 --- a/app/l10n_util.cc +++ b/app/l10n_util.cc @@ -1015,7 +1015,7 @@ UBool BiDiLineIterator::Open(const std::wstring& text, const std::wstring &text_utf16 = text; #endif // U_SIZEOF_WCHAR_T != 4 ubidi_setPara(bidi_, text_utf16.data(), static_cast(text_utf16.length()), - right_to_left ? UBIDI_DEFAULT_RTL : UBIDI_DEFAULT_LTR, + right_to_left ? UBIDI_RTL : UBIDI_LTR, NULL, &error); return U_SUCCESS(error); } -- cgit v1.1