Hello community, here is the log from the commit of package libreoffice for openSUSE:Factory checked in at 2013-05-16 16:12:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libreoffice (Old) and /work/SRC/openSUSE:Factory/.libreoffice.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libreoffice" Changes: -------- --- /work/SRC/openSUSE:Factory/libreoffice/libreoffice-branding-upstream.changes 2013-04-26 13:28:10.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libreoffice.new/libreoffice-branding-upstream.changes 2013-05-16 16:12:54.000000000 +0200 @@ -1,0 +2,5 @@ +Fri May 10 09:53:14 UTC 2013 - pmladek@suse.com + +- update to 4.0.3.3.2 (SUSE 4.0-rc2, tag suse-4.0-2, based on upstream 4.0.3.3) + +------------------------------------------------------------------- libreoffice-help-en-US.changes: same change libreoffice-help-group1.changes: same change libreoffice-help-group2.changes: same change libreoffice-help-group3.changes: same change libreoffice-help-group4.changes: same change libreoffice-help-group5.changes: same change libreoffice-icon-themes.changes: same change libreoffice-l10n.changes: same change --- /work/SRC/openSUSE:Factory/libreoffice/libreoffice.changes 2013-04-26 13:28:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libreoffice.new/libreoffice.changes 2013-05-16 16:13:03.000000000 +0200 @@ -1,0 +2,81 @@ +Tue May 14 09:41:34 UTC 2013 - pmladek@suse.com + +- wizards-create-temlates-with-python-2.6.diff: Letter and Fax templates + can't be created by python-2.6 if ODF file type description uses + non-ASCII characters +- office-cfg-linux-common-template-dir.diff: keep the default system + paths first; the Agenda wizard is not found, otherwise + +------------------------------------------------------------------- +Fri May 10 09:53:14 UTC 2013 - pmladek@suse.com + +- update to 4.0.3.3.2 (SUSE 4.0-rc2, tag suse-4.0-2, based on upstream 4.0.3.3) + * lots crasher fixes + * add mono support again + * lots other import/export fixes + * added and fixed various VBA API + * FileDateTime function (fdo#63306) + * broken word completion (fdo#62643) + * broken YEARFRAC function (fdo#40100) + * legacy diagram PPTX import (bnc#699334) + * animations inside SmartArt (bnc#705982) + * cut/copy icons in Basic IDE (fdo#30545) + * table layout in DOCX import (bnc#780645) + * VBA macro fails in PageSetUp (bnc#813528) + * Firefox plugin not recognized (fdo#54087) + * decimal and group separators were swapped + * no sound with statement "beep" (fdo#58807) + * shapes location in DOCX import (bnc#816583) + * search is always case sensitive (fdo#63779) + * unable to save on Samba via GVFS (fdo#54275) + * slide show mode inverts outputs (rhbz#906137) + * reorder toolbars in formula editor (fdo#63350) + * wrong bullet color in PPTX import (bnc#719988) + * splitting a table options are mixed (fdo#62670) + * pull-down selections in DOCX import (bnc#779630) + * shape with background in XLSX import (bnc#798309) + * autocorrect options can not be closed (fdo#57905) + * import of scattered and bubble charts (bnc#810508) + * transparent background in EMF+ import (bnc#812793) + * wrong background color in PPTX import (bnc#734733) + * allow to use more than 3 sort criteria (fdo#51828) + * 'Personas' are called 'Themes' and changed location + * frame's background color in DOCX import (bnc#592908) + * bullet points are not indented correctly (bnc#793414) + * axis labels with percentage in PPTX import (bnc#813291) + * do not freeze in picture dialog without JRE (fdo#57553) + * better fix for default PDF export directory (bnc#777788) + * implement easy access to the recent documents (bnc#816516) + * really use the setting how to follow hyperlinks (fdo#51296) + * keep migrating user extensions after one failed (deb#703486) + * support MS Office and Flat ODF file types in Mozilla plug-in + * impossible to assign a macro to a drawing or picture (fdo#62797) + * VBA macro fails with error "Incorrect Property Value" (bnc#809017) + * broken surrounding text support (STS) for Input Methods (fdo#63802) + * VBA macro fails with "objCmd.ActiveConnection = Nothing" (bnc#805071) + * several template manager fixes (fdo#60581, fdo#60844, fdo#61389, + fdo#61390) + * several Base Report Builder fixes (fdo#33091, fdo#36858, fdo#48056, + fdo#61564, i#112652, i#108092) + * several RTL support fixes (fdo#33302, fdo#38951, fdo#59117, fdo#60533, + fdo#60554, fdo#60855, fdo#62050, fdo#62143, fdo#62399, fdo#63878, + fdo#37464, fdo#59892) +- update libvisio to version 0.0.26: + * extend the encoding support + * several other fixes and improvements +- update libcdr to version 0.0.13: + * text color, CDR, txsm, and other fixes +- removed obsolete patches: + * touch-no-dereference.diff + * libreoffice-poppler-0.17.0-reject-fix.diff +- system-poppler-0.12.3.diff: easier approach to build with system + poppler, version 0.12.3 +- enable mono build again + +------------------------------------------------------------------- +Thu May 9 15:08:37 UTC 2013 - pmladek@suse.com + +- use --enable-gstreamer-0-10 configure option to make sure that + we use the stable implementation + +------------------------------------------------------------------- Old: ---- libcdr-0.0.11.tar.bz2 libreoffice-4.0.2.2.1.tar.xz libreoffice-help-4.0.2.2.1.tar.xz libreoffice-poppler-0.17.0-reject-fix.diff libreoffice-translations-4.0.2.2.1.tar.xz libvisio-0.0.25.tar.bz2 touch-no-dereference.diff New: ---- libcdr-0.0.13.tar.bz2 libreoffice-4.0.3.3.2.tar.xz libreoffice-help-4.0.3.3.2.tar.xz libreoffice-translations-4.0.3.3.2.tar.xz libvisio-0.0.26.tar.bz2 system-poppler-0.12.3.diff wizards-create-temlates-with-python-2.6.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libreoffice-branding-upstream.spec ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:11.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:11.000000000 +0200 @@ -18,7 +18,7 @@ Name: libreoffice-branding-upstream -Version: 4.0.2.2.1 +Version: 4.0.3.3.2 Release: 0 %define lo_home libreoffice Summary: Original Branding for LibreOffice ++++++ libreoffice-help-en-US.spec ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:11.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:11.000000000 +0200 @@ -22,7 +22,7 @@ ## Generated by: ## perl lo-help-gen-spec libreoffice-help-en-US.spec.in lo-help-en-US ################################################################### -Version: 4.0.2.2.1 +Version: 4.0.3.3.2 Release: 0 %define gnu_make_version 3.82 %define gnu_make_snapshot 20120301 ++++++ libreoffice-help-group1.spec ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:11.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:11.000000000 +0200 @@ -22,7 +22,7 @@ ## Generated by: ## perl lo-help-gen-spec libreoffice-help-groupX.spec.in lo-help-groupX ################################################################### -Version: 4.0.2.2.1 +Version: 4.0.3.3.2 Release: 0 %define gnu_make_version 3.82 %define gnu_make_snapshot 20120301 libreoffice-help-group2.spec: same change libreoffice-help-group3.spec: same change libreoffice-help-group4.spec: same change libreoffice-help-group5.spec: same change ++++++ libreoffice-icon-themes.spec ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:11.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:11.000000000 +0200 @@ -18,7 +18,7 @@ Name: libreoffice-icon-themes -Version: 4.0.2.2.1 +Version: 4.0.3.3.2 Release: 0 %define ooo_home libreoffice BuildRequires: libreoffice-icon-themes-prebuilt = %version ++++++ libreoffice-l10n.spec ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:11.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:11.000000000 +0200 @@ -22,7 +22,7 @@ ## perl lo-l10n-gen-spec libreoffice-l10n.spec.in lo-l10n-data ################################################################### Name: libreoffice-l10n -Version: 4.0.2.2.1 +Version: 4.0.3.3.2 Release: 0 %define piece l10n %define ooo_home libreoffice ++++++ libreoffice.spec ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:11.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:11.000000000 +0200 @@ -156,7 +156,7 @@ %define test_build_sdk 1 # build_mono: 1 = yes # 0 = no (pack just a README file) -%define build_mono 0 +%define build_mono 1 # save_space: 0 = no # 1 = yes (do some hacks to safe space in the installation phase) %define save_space 1 @@ -203,7 +203,7 @@ %define ct2n_version 1.3.2 %define gdocs_version 3.0.1 %define numbertext_version 0.9.5 -Version: 4.0.2.2.1 +Version: 4.0.3.3.2 Release: 0 Requires: libreoffice-branding >= 4.0 Requires: libreoffice-icon-themes = %version @@ -556,12 +556,12 @@ Source1039: 97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip Source1040: 0981bda6548a8c8233ffce2b6e4b2a23-mysql-connector-c++-1.1.0.tar.gz Source1041: b2371dc7cf4811c9d32146eec913d296-libcmis-0.3.0.tar.gz -Source1042: libvisio-0.0.25.tar.bz2 +Source1042: libvisio-0.0.26.tar.bz2 Source1043: 54e578c91b1b68e69c72be22adcb2195-liblangtag-0.4.0.tar.bz2 # FIXME: the system clucene does not include stuff from contribs-lib (CJKAnalyzer.h) Source1044: 48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz # newly developed library for LO feature -Source1045: libcdr-0.0.11.tar.bz2 +Source1045: libcdr-0.0.13.tar.bz2 # this library is not available on older distributions Source1046: 861ef15fa0bc018f9ddc932c4ad8b6dd-lcms2-2.4.tar.gz # internal boost headers are needed on openSUSE <= 11.3; the system one has broken dst_adjustment_offsets definition (bnc#767949) @@ -609,12 +609,12 @@ # dmake does not work with more than 64 jobs # FIXME: this patch won't be necessary in LO-4.1 where dmake has finally been removed Patch16: build-max-64-jobs.diff -# avoid race condition when delivering symlinks and target files into solver -Patch17: touch-no-dereference.diff +# Letter and Fax tamplates can't be created by python-2.6 if ODF file type description uses non-Ascii characters +Patch17: wizards-create-temlates-with-python-2.6.diff # -# revert problematic build fix for poppler 0.17.0 on older distributions +# cpp/poppler-version.h is not included in older poppler packages # FIXME: make it configurable to push upstream -Patch910: libreoffice-poppler-0.17.0-reject-fix.diff +Patch910: system-poppler-0.12.3.diff # crazy hack to avoid /usr/lib64 in RPATH and pass brp-rpath check (bnc#717262) Patch920: redland-rpath-hack.diff # try to save space by using hardlinks @@ -1304,9 +1304,10 @@ %patch15 %patch16 %patch17 -p1 -%if %suse_version <= 1130 +# +%if %suse_version >= 1110 && %suse_version < 1120 # cpp/poppler-version.h is not included in older poppler packages -%patch910 -p1 +%patch910 %endif # %if %suse_version > 1140 && %suse_version < 1230 @@ -1388,11 +1389,12 @@ --enable-kde \ --enable-kde4 \ %endif + --enable-gstreamer-0-10 \ --enable-evolution2 \ --enable-lockdown \ --enable-dbus \ %if 0%{?suse_version} <= 01130 -%if %build_mono == 1 +%if %build_mono != 0 --enable-mono \ --with-mono-gac-root=%{_prefix}/lib \ %endif ++++++ libcdr-0.0.11.tar.bz2 -> libcdr-0.0.13.tar.bz2 ++++++ ++++ 26202 lines of diff (skipped) ++++++ libreoffice-4.0.2.2.1.tar.xz -> libreoffice-4.0.3.3.2.tar.xz ++++++ /work/SRC/openSUSE:Factory/libreoffice/libreoffice-4.0.2.2.1.tar.xz /work/SRC/openSUSE:Factory/.libreoffice.new/libreoffice-4.0.3.3.2.tar.xz differ: char 26, line 1 ++++++ libreoffice-help-4.0.2.2.1.tar.xz -> libreoffice-help-4.0.3.3.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libreoffice-4.0.2.2.1/ChangeLog-helpcontent2 new/libreoffice-4.0.3.3.2/ChangeLog-helpcontent2 --- old/libreoffice-4.0.2.2.1/ChangeLog-helpcontent2 2013-04-17 11:40:23.000000000 +0200 +++ new/libreoffice-4.0.3.3.2/ChangeLog-helpcontent2 2013-05-09 16:42:45.000000000 +0200 @@ -1,6 +1,6 @@ -2013-04-17 Petr Mladek <pmladek@suse.cz> [91e799e8f1bac70688a01fc19329cbc4389fc85c] +2013-05-09 Petr Mladek <pmladek@suse.cz> [9179247c1940b507e23fb8f3c48e430978ebadce] -Release SUSE 4.0-1, build id 201, Linux version 4.0.2.2.1, tag suse-4.0-1 +Release SUSE 4.0-2, build id 302, Linux version 4.0.3.3.2, tag suse-4.0-2 2013-03-28 Petr Mladek <pmladek@suse.cz> [b182589dc00d4890dadb8a6c8d4d1901847fb0bf] ++++++ libreoffice-help-en-US.spec.in ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:14.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:14.000000000 +0200 @@ -18,7 +18,7 @@ Name: libreoffice-help-en-US @DO_NOT_EDIT_COMMENT@ -Version: 4.0.2.2.1 +Version: 4.0.3.3.2 Release: 0 %define gnu_make_version 3.82 %define gnu_make_snapshot 20120301 ++++++ libreoffice-help-groupX.spec.in ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:14.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:14.000000000 +0200 @@ -18,7 +18,7 @@ Name: libreoffice-help-group@GROUP_NUMBER@ @DO_NOT_EDIT_COMMENT@ -Version: 4.0.2.2.1 +Version: 4.0.3.3.2 Release: 0 %define gnu_make_version 3.82 %define gnu_make_snapshot 20120301 ++++++ libreoffice-l10n.spec.in ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:14.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:14.000000000 +0200 @@ -18,7 +18,7 @@ @DO_NOT_EDIT_COMMENT@ Name: libreoffice-l10n -Version: 4.0.2.2.1 +Version: 4.0.3.3.2 Release: 0 %define piece l10n %define ooo_home libreoffice ++++++ libreoffice-translations-4.0.2.2.1.tar.xz -> libreoffice-translations-4.0.3.3.2.tar.xz ++++++ /work/SRC/openSUSE:Factory/libreoffice/libreoffice-translations-4.0.2.2.1.tar.xz /work/SRC/openSUSE:Factory/.libreoffice.new/libreoffice-translations-4.0.3.3.2.tar.xz differ: char 26, line 1 ++++++ libvisio-0.0.25.tar.bz2 -> libvisio-0.0.26.tar.bz2 ++++++ ++++ 24245 lines of diff (skipped) ++++++ office-cfg-linux-common-template-dir.diff ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:14.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:14.000000000 +0200 @@ -1,33 +1,37 @@ ---- officecfg/registry/data/org/openoffice/Office/Common.xcu +Index: officecfg/registry/data/org/openoffice/Office/Common.xcu +=================================================================== +--- officecfg/registry/data/org/openoffice/Office/Common.xcu.orig +++ officecfg/registry/data/org/openoffice/Office/Common.xcu -@@ -705,4 +705,6 @@ +@@ -727,4 +727,6 @@ "com.sun.star.configuration.backend.GconfBackend OpenGL_Faster"/> </prop> </node> + <!-- FIXME: This comment is needed to change a checksum or so. + Then the updated list of templates paths is read from Common.xcs--> </oor:component-data> ---- officecfg/registry/schema/org/openoffice/Office/Common.xcs.old 2012-03-01 15:34:22.000000000 +0100 -+++ officecfg/registry/schema/org/openoffice/Office/Common.xcs 2012-03-01 15:54:05.000000000 +0100 -@@ -1897,6 +1897,10 @@ - sub-folders.</desc> - </info> +Index: officecfg/registry/schema/org/openoffice/Office/Common.xcs +=================================================================== +--- officecfg/registry/schema/org/openoffice/Office/Common.xcs.orig ++++ officecfg/registry/schema/org/openoffice/Office/Common.xcs +@@ -1965,6 +1965,10 @@ <value> + <it>$(insturl)/share/template/$(vlang)</it> + <it>$(insturl)/share/template/common</it> + <it>file:///usr/share/templates/libreoffice/common</it> + <it>file:///usr/share/templates/libreoffice/$(vlang)</it> + <it>file:///usr/share/templates/ooo/common</it> + <it>file:///usr/share/templates/ooo/$(vlang)</it> - <it>$(insturl)/share/template/$(vlang)</it> - <it>$(insturl)/share/template/common</it> <it>$(userurl)/template</it> -@@ -2090,6 +2094,10 @@ - are located in folders and sub-folders.</desc> - </info> + </value> + </prop> +@@ -2165,6 +2169,10 @@ <value> + <it>$(insturl)/share/template/$(vlang)</it> + <it>$(insturl)/share/template/common</it> + <it>file:///usr/share/templates/libreoffice/common</it> + <it>file:///usr/share/templates/libreoffice/$(vlang)</it> + <it>file:///usr/share/templates/ooo/common</it> + <it>file:///usr/share/templates/ooo/$(vlang)</it> - <it>$(insturl)/share/template/$(vlang)</it> - <it>$(insturl)/share/template/common</it> <it>$(userurl)/template</it> + </value> + </prop> ++++++ solenv-touch-no-dereference.diff ++++++ --- /var/tmp/diff_new_pack.1vgQjL/_old 2013-05-16 16:13:14.000000000 +0200 +++ /var/tmp/diff_new_pack.1vgQjL/_new 2013-05-16 16:13:14.000000000 +0200 @@ -1,10 +1,12 @@ ---- solenv/gbuild/Deliver.mk.old 2013-03-28 19:01:42.000000000 +0100 -+++ solenv/gbuild/Deliver.mk 2013-04-18 12:24:05.000000000 +0200 +Index: solenv/gbuild/Deliver.mk +=================================================================== +--- solenv/gbuild/Deliver.mk.orig ++++ solenv/gbuild/Deliver.mk @@ -60,7 +60,7 @@ endif endef define gb_Deliver__deliver --$(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) $(if $(gb_Deliver_HARDLINK),ln,cp -P -f) $(1) $(2) && touch --no-dereference -r $(1) $(2) +-$(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) $(if $(gb_Deliver_HARDLINK),ln,cp -P -f) $(1) $(2) && touch $(if $(filter-out MACOSX,$(OS_FOR_BUILD)),--no-dereference) -r $(1) $(2) +$(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) $(if $(gb_Deliver_HARDLINK),ln,cp -P -f) $(1) $(2) && touch -r $(1) $(2) endef ++++++ system-poppler-0.12.3.diff ++++++ Index: libreoffice-4.0.3.2a/configure.ac =================================================================== --- configure.ac +++ configure.ac @@ -9723,16 +9723,6 @@ if test "$_os" != Android -a "$_os" != i AC_MSG_RESULT([external]) SYSTEM_POPPLER=YES PKG_CHECK_MODULES( POPPLER, poppler >= 0.8.0 ) - AC_LANG_PUSH([C++]) - save_CXXFLAGS=$CXXFLAGS - save_CPPFLAGS=$CPPFLAGS - CXXFLAGS="$CXXFLAGS $POPPLER_CFLAGS" - CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS" - AC_CHECK_HEADER([cpp/poppler-version.h], [], - [AC_MSG_ERROR([cpp/poppler-version.h not found. Install poppler])], []) - CXXFLAGS=$save_CXXFLAGS - CPPFLAGS=$save_CPPFLAGS - AC_LANG_POP([C++]) libo_MINGW_CHECK_DLL([POPPLER], [libpoppler]) else AC_MSG_RESULT([internal]) --- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx.old 2013-05-01 16:10:03.000000000 +0200 +++ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx 2013-05-01 16:11:22.000000000 +0200 @@ -62,7 +62,10 @@ class PDFDoc; #define POPPLER_CHECK_VERSION(major,minor,micro) (0) typedef GString GooString; #else -#include <cpp/poppler-version.h> +#define POPPLER_VERSION "0.12.3" +#define POPPLER_VERSION_MAJOR 0 +#define POPPLER_VERSION_MINOR 12 +#define POPPLER_VERSION_MICRO 3 #define POPPLER_CHECK_VERSION(major,minor,micro) \ (POPPLER_VERSION_MAJOR > (major) || \ (POPPLER_VERSION_MAJOR == (major) && POPPLER_VERSION_MINOR > (minor)) || \ ++++++ wizards-create-temlates-with-python-2.6.diff ++++++
From 8a6be8341d0a962d1ec384440ece523607c8b1d5 Mon Sep 17 00:00:00 2001 From: Petr Mladek <pmladek@suse.cz> Date: Tue, 14 May 2013 11:25:49 +0200 Subject: [PATCH] allow to create Letter and Fax templates with python 2.6
The localized file type desciptions have non-ascii characters. The "str" type acceppts only "ascii" characters in python-2.6, The string has to be encoded according to the system locale, otherwise it is broken in non-UTF-* locales. Change-Id: I0a138f10ec7c2665c0700918f671fbd5eb674bf6 --- wizards/com/sun/star/wizards/common/SystemDialog.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/wizards/com/sun/star/wizards/common/SystemDialog.py b/wizards/com/sun/star/wizards/common/SystemDialog.py index ab9b463..aa3426a 100644 --- a/wizards/com/sun/star/wizards/common/SystemDialog.py +++ b/wizards/com/sun/star/wizards/common/SystemDialog.py @@ -15,6 +15,7 @@ # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . # +import locale import traceback from .Desktop import Desktop @@ -139,6 +140,24 @@ class SystemDialog(object): traceback.print_exc() ''' + The original string is in the system encoding but str accepts only "ascii" in python 2.6 + This hack is not needed with python-3.0 + ''' + def createStr(self, sString): + try: + strString = str(sString) + + except: + try: + sCodeSet = locale.nl_langinfo(locale.CODESET) + except: + sCodeSet = "utf-8" + + strString = str(sString.encode(sCodeSet)) + + return strString + + ''' note the result should go through conversion of the product name. @param filterName @return the UI localized name of the given filter name. @@ -152,7 +171,7 @@ class SystemDialog(object): xPropertyValue = list(oObject) for i in xPropertyValue: if i is not None and i.Name == "UIName": - return str(i.Value).replace("%productname%", "LibreOffice") + return self.createStr(i.Value).replace("%productname%", "LibreOffice") raise NullPointerException( "UIName property not found for Filter " + filterName); -- 1.8.1.3 -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de