wget/0001-Fix-idn-cmd-utf8-and-idn-robots-utf8-tests-on-archit.patch

27 lines
721 B
Diff

From 8d7c4f611f8ec9e16b6345dc49e0d0b8704a8a30 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20=C4=8Cajka?= <jcajka@redhat.com>
Date: Mon, 3 Nov 2014 10:34:48 +0100
Subject: [PATCH] Fix idn-cmd-utf8 and idn-robots-utf8 tests on architectures
with unsigned char
---
src/iri.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/iri.c b/src/iri.c
index e38edc9..11f2bda 100644
--- a/src/iri.c
+++ b/src/iri.c
@@ -279,7 +279,7 @@ remote_to_utf8 (struct iri *iri, const char *str, const char **new)
{
const char *p = str;
for (p = str; *p; p++)
- if (*p < 0)
+ if (*p < 0 || *p > 127)
{
*new = strdup (str);
return true;
--
1.9.3