From 52bcb82daf24d6c290ec493980dff80459be73e4e77707bd345539eb8f507057 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 3 Feb 2019 18:16:59 +0000 Subject: [PATCH] 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 --- ell.changes | 5 +++++ ell.spec | 4 +++- unsigned-char.patch | 13 +++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 unsigned-char.patch diff --git a/ell.changes b/ell.changes index f83b8dd..5bf5a29 100644 --- a/ell.changes +++ b/ell.changes @@ -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 diff --git a/ell.spec b/ell.spec index 42e6f80..839e108 100644 --- a/ell.spec +++ b/ell.spec @@ -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 diff --git a/unsigned-char.patch b/unsigned-char.patch new file mode 100644 index 0000000..4dfe93c --- /dev/null +++ b/unsigned-char.patch @@ -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; + }