WebKit Bugzilla
Attachment 370469 Details for
Bug 198149
: [PlayStation] Implement platformUserPreferredLanguages.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-198149-20190522170750.patch (text/plain), 3.21 KB, created by
Ross Kirsling
on 2019-05-22 17:07:52 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Ross Kirsling
Created:
2019-05-22 17:07:52 PDT
Size:
3.21 KB
patch
obsolete
>Subversion Revision: 245655 >diff --git a/Source/WTF/ChangeLog b/Source/WTF/ChangeLog >index 1e771f3c97db43981bde3789ba0e4a49a9559253..c88dd719dfcd7739eebb9403d613b37f7ef48498 100644 >--- a/Source/WTF/ChangeLog >+++ b/Source/WTF/ChangeLog >@@ -1,3 +1,14 @@ >+2019-05-22 Ross Kirsling <ross.kirsling@sony.com> >+ >+ [PlayStation] Implement platformUserPreferredLanguages. >+ https://bugs.webkit.org/show_bug.cgi?id=198149 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * wtf/PlatformPlayStation.cmake: >+ * wtf/playstation/LanguagePlayStation.cpp: Added. >+ (WTF::platformUserPreferredLanguages): >+ > 2019-05-22 Ryan Haddad <ryanhaddad@apple.com> > > Unreviewed, rolling out r245598. >diff --git a/Source/WTF/wtf/PlatformPlayStation.cmake b/Source/WTF/wtf/PlatformPlayStation.cmake >index ddfe68a513802bb5b9f481e2dd9fb41f42baec22..287a269082889dfb73c509f22e5e734bc8f1ce86 100644 >--- a/Source/WTF/wtf/PlatformPlayStation.cmake >+++ b/Source/WTF/wtf/PlatformPlayStation.cmake >@@ -5,6 +5,7 @@ list(APPEND WTF_SOURCES > generic/RunLoopGeneric.cpp > generic/WorkQueueGeneric.cpp > >+ playstation/LanguagePlayStation.cpp > playstation/UniStdExtrasPlayStation.cpp > > posix/FileSystemPOSIX.cpp >diff --git a/Source/WTF/wtf/playstation/LanguagePlayStation.cpp b/Source/WTF/wtf/playstation/LanguagePlayStation.cpp >new file mode 100644 >index 0000000000000000000000000000000000000000..d4537a6940b5e022bf5e5cdf71a863d3309df61c >--- /dev/null >+++ b/Source/WTF/wtf/playstation/LanguagePlayStation.cpp >@@ -0,0 +1,44 @@ >+/* >+ * Copyright (C) 2019 Sony Interactive Entertainment Inc. >+ * >+ * Redistribution and use in source and binary forms, with or without >+ * modification, are permitted provided that the following conditions >+ * are met: >+ * 1. Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * 2. Redistributions in binary form must reproduce the above copyright >+ * notice, this list of conditions and the following disclaimer in the >+ * documentation and/or other materials provided with the distribution. >+ * >+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' >+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, >+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS >+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR >+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF >+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS >+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN >+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) >+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF >+ * THE POSSIBILITY OF SUCH DAMAGE. >+ */ >+ >+#include "config.h" >+#include <wtf/Language.h> >+ >+#include <wtf/text/WTFString.h> >+ >+namespace WTF { >+ >+Vector<String> platformUserPreferredLanguages() >+{ >+ Vector<String> languages; >+ >+ char buffer[16]; >+ if (!getenv_np("SYSTEM_LANGUAGE", buffer, sizeof(buffer))) >+ languages.append(buffer); >+ >+ return languages; >+} >+ >+} // namespace WTF
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 198149
: 370469 |
370497