fix kjs to return valid lang (RFC 1766)
This commit is contained in:
parent
62a00ec7e6
commit
40c0864bf7
12
kdelibs-4.8.4-kjs-locale.patch
Normal file
12
kdelibs-4.8.4-kjs-locale.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp.kjs-locale kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp
|
||||
--- kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp.kjs-locale 2012-06-06 22:49:52.542044112 +0200
|
||||
+++ kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp 2012-07-10 23:39:17.508405723 +0200
|
||||
@@ -261,7 +261,7 @@ JSValue *Navigator::getValueProperty(Exe
|
||||
case BrowserLanguage:
|
||||
case Language:
|
||||
case UserLanguage:
|
||||
- return jsString(KGlobal::locale()->language());
|
||||
+ return jsString(KGlobal::locale()->language().replace(QLatin1Char('_'), QLatin1Char('-')));
|
||||
case UserAgent:
|
||||
return jsString(userAgent);
|
||||
case Platform:
|
@ -25,7 +25,7 @@
|
||||
|
||||
Summary: KDE Libraries
|
||||
Version: 4.8.97
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
|
||||
Name: kdelibs
|
||||
Epoch: 6
|
||||
@ -142,6 +142,9 @@ Patch52: kdelibs-4.7.4-SOLID_UPNP.patch
|
||||
# add s390/s390x support in kjs
|
||||
Patch53: kdelibs-4.7.2-kjs-s390.patch
|
||||
|
||||
# return valid locale (RFC 1766)
|
||||
Patch54: kdelibs-4.8.4-kjs-locale.patch
|
||||
|
||||
## upstream
|
||||
# fix kdeclarative install location (by wstephenson as found in kde-packager list)
|
||||
Patch100: kdelibs-4.8.3-kdeclarative-install-location.patch
|
||||
@ -352,6 +355,7 @@ popd
|
||||
%patch51 -p1 -b .uri_mimetypes
|
||||
%patch52 -p1 -b .SOLID_UPNP
|
||||
%patch53 -p1 -b .kjs-s390
|
||||
%patch54 -p1 -b .kjs-locale
|
||||
|
||||
# upstream patches
|
||||
%patch100 -p1 -b .kdeclarative-install-location
|
||||
@ -610,6 +614,9 @@ rm -rf %{buildroot}
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 12 2012 Than Ngo <than@redhat.com> - 6:4.8.97-2
|
||||
- fix kjs to return valid lang (RFC 1766)
|
||||
|
||||
* Wed Jul 11 2012 Rex Dieter <rdieter@fedoraproject.org> - 6:4.8.97-1
|
||||
- 4.8.97
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user