Changeset 214036 in webkit
- Timestamp:
- Mar 16, 2017 4:55:13 AM (7 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 1 added
- 2 deleted
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r214035 r214036 1 2017-03-16 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [UNIX] Implement currentSearchLocaleID() and currentTextBreakLocaleID() 4 https://bugs.webkit.org/show_bug.cgi?id=169745 5 6 Reviewed by Yusuke Suzuki. 7 8 Add a common implementation for Unix based ports using setlocale. 9 10 * wtf/PlatformGTK.cmake: 11 * wtf/PlatformJSCOnly.cmake: 12 * wtf/text/gtk/TextBreakIteratorInternalICUGtk.cpp: Removed. 13 * wtf/text/unix/TextBreakIteratorInternalICUUnix.cpp: Renamed from Source/WTF/wtf/text/jsconly/TextBreakIteratorInternalICUJSCOnly.cpp. 14 (WTF::currentSearchLocaleID): 15 (WTF::currentTextBreakLocaleID): 16 1 17 2017-03-16 Carlos Garcia Campos <cgarcia@igalia.com> 2 18 -
trunk/Source/WTF/wtf/PlatformGTK.cmake
r213214 r214036 15 15 UniStdExtras.cpp 16 16 17 text/ gtk/TextBreakIteratorInternalICUGtk.cpp17 text/unix/TextBreakIteratorInternalICUUnix.cpp 18 18 ) 19 19 -
trunk/Source/WTF/wtf/PlatformJSCOnly.cmake
r214025 r214036 3 3 4 4 generic/WorkQueueGeneric.cpp 5 ) 5 6 6 text/jsconly/TextBreakIteratorInternalICUJSCOnly.cpp 7 ) 7 if (WIN32) 8 list(APPEND WTF_SOURCES 9 text/win/TextBreakIteratorInternalICUWin.cpp 10 ) 11 else () 12 list(APPEND WTF_SOURCES 13 text/unix/TextBreakIteratorInternalICUUnix.cpp 14 ) 15 endif () 8 16 9 17 if (LOWERCASE_EVENT_LOOP_TYPE STREQUAL "glib") -
trunk/Source/WTF/wtf/text/unix/TextBreakIteratorInternalICUUnix.cpp
r214035 r214036 1 1 /* 2 * Copyright (C) 20 07 Alp Toker <alp@atoker.com>2 * Copyright (C) 2017 Igalia S.L. 3 3 * 4 4 * This library is free software; you can redistribute it and/or … … 21 21 #include "TextBreakIteratorInternalICU.h" 22 22 23 #include <locale.h> 24 23 25 namespace WTF { 24 26 25 27 const char* currentSearchLocaleID() 26 28 { 27 // FIXME: Should use system locale. 29 if (auto* localeDefault = setlocale(LC_MESSAGES, nullptr)) 30 return localeDefault; 28 31 return ""; 29 32 } … … 31 34 const char* currentTextBreakLocaleID() 32 35 { 33 // FIXME: Should use system locale. 36 if (auto* localeDefault = setlocale(LC_MESSAGES, nullptr)) 37 return localeDefault; 34 38 return "en_us"; 35 39 }
Note: See TracChangeset
for help on using the changeset viewer.