- comma and the rest of family string is ignored while translating

preference lists from sysconfig to fontconfig snippets 
  [bsc#998300]

OBS-URL: https://build.opensuse.org/package/show/M17N/fonts-config?expand=0&rev=76
This commit is contained in:
Petr Gajdos 2016-09-14 15:18:43 +00:00 committed by Git OBS Bridge
parent 2f7c8db927
commit 9f6ec164cd
3 changed files with 11 additions and 2 deletions

View File

@ -654,7 +654,7 @@ sub get_option_defaults_from_sysconfig {
elsif (eval ("\$$i") =~ /^[0-9]+$/) { # Type integer elsif (eval ("\$$i") =~ /^[0-9]+$/) { # Type integer
eval("\$$sysconfig_options{$i}=\$$i"); eval("\$$sysconfig_options{$i}=\$$i");
} }
elsif (eval ("\$$i") =~ /^[-:a-zA-Z0-9 &]+$/) { # Type string elsif (eval ("\$$i") =~ /^[-:a-zA-Z0-9 &,]+$/) { # Type string
eval("\$$sysconfig_options{$i}=\$$i"); eval("\$$sysconfig_options{$i}=\$$i");
} }
else { # this case also occurs when the variable is the empty string! else { # this case also occurs when the variable is the empty string!
@ -1313,6 +1313,8 @@ sub family_preference_list {
$cfg .= "\t\t<family>$family</family>\n"; $cfg .= "\t\t<family>$family</family>\n";
$cfg .= "\t\t<prefer>\n"; $cfg .= "\t\t<prefer>\n";
for my $f (@families) { for my $f (@families) {
# remove comma and the rest of the family string [bsc#998300]
$f =~ s/,.*//;
$f =~ s/&/&amp;/g; $f =~ s/&/&amp;/g;
$cfg .= " <family>$f</family>\n"; $cfg .= " <family>$f</family>\n";
if ($VERBOSITY >= $VERBOSITY_DEBUG) { if ($VERBOSITY >= $VERBOSITY_DEBUG) {

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Sep 14 15:15:11 UTC 2016 - pgajdos@suse.com
- comma and the rest of family string is ignored while translating
preference lists from sysconfig to fontconfig snippets
[bsc#998300]
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 9 08:04:29 UTC 2015 - pgajdos@suse.com Mon Nov 9 08:04:29 UTC 2015 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package fonts-config # spec file for package fonts-config
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed