From 00203b2888a69fbfca87c4ea5efaa37cc78c919c Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Fri, 21 Nov 2014 14:19:48 +0530 Subject: [PATCH] Revert "remote_to_utf8: cut off part of condition always false" This reverts commit 1553c70961d05ffeb15780d0d1d58f991d9a6c66. Some architectures like arm64 and ppc64 have unsigned chars where this commit will cause problems. --- src/ChangeLog | 4 ---- src/iri.c | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 82242a41..98c47b5e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,7 +1,3 @@ -2014-11-21 Daniel Stenberg - - * iri.c (remote_to_utf8): Remove condition that is always false - 2014-11-20 Tim Ruehsen * progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR diff --git a/src/iri.c b/src/iri.c index 943b039c..d924699e 100644 --- a/src/iri.c +++ b/src/iri.c @@ -1,5 +1,5 @@ /* IRI related functions. - Copyright (C) 2008, 2009, 2010, 2011, 2014 Free Software Foundation, Inc. + Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. This file is part of GNU Wget. @@ -281,7 +281,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;