Accepting request 670330 from home:Andreas_Schwab:Factory

- unsigned-char.patch: don't depend on signedness of char

OBS-URL: https://build.opensuse.org/request/show/670330
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/ell?expand=0&rev=12
This commit is contained in:
Dirk Mueller 2019-02-03 18:16:59 +00:00 committed by Git OBS Bridge
parent ce913057ac
commit 52bcb82daf
3 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 31 11:45:09 UTC 2019 - schwab@suse.de
- unsigned-char.patch: don't depend on signedness of char
-------------------------------------------------------------------
Thu Dec 13 20:25:38 UTC 2018 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package ell
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -28,6 +28,7 @@ URL: https://01.org/ell
Source: https://mirrors.kernel.org/pub/linux/libs/ell/%name-%version.tar.xz
Source2: https://mirrors.kernel.org/pub/linux/libs/ell/%name-%version.tar.sign
Source3: %name.keyring
Patch: unsigned-char.patch
BuildRequires: gcc-c++
BuildRequires: libtool >= 2.2
BuildRequires: pkg-config
@ -59,6 +60,7 @@ applications that want to make use of ell.
%prep
%setup -q
%patch -p1
%build
%configure

13
unsigned-char.patch Normal file
View File

@ -0,0 +1,13 @@
Index: ell-0.16/ell/utf8.c
===================================================================
--- ell-0.16.orig/ell/utf8.c
+++ ell-0.16/ell/utf8.c
@@ -90,7 +90,7 @@ LIB_EXPORT int l_utf8_get_codepoint(cons
wchar_t val;
size_t i;
- if (str[0] > 0) {
+ if ((str[0] & 0x80) == 0) {
*cp = str[0];
return 1;
}