1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Revert "remote_to_utf8: cut off part of condition always false"

This reverts commit 1553c70961.

Some architectures like arm64 and ppc64 have unsigned chars where this
commit will cause problems.
This commit is contained in:
Darshit Shah 2014-11-21 14:19:48 +05:30
parent 1553c70961
commit 00203b2888
2 changed files with 2 additions and 6 deletions

View File

@ -1,7 +1,3 @@
2014-11-21 Daniel Stenberg <daniel@haxx.se>
* iri.c (remote_to_utf8): Remove condition that is always false
2014-11-20 Tim Ruehsen <tim.ruehsen@gmx.de> 2014-11-20 Tim Ruehsen <tim.ruehsen@gmx.de>
* progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR * progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR

View File

@ -1,5 +1,5 @@
/* IRI related functions. /* 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. 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; const char *p = str;
for (p = str; *p; p++) for (p = str; *p; p++)
if (*p < 0) if (*p < 0 || *p > 127)
{ {
*new = strdup (str); *new = strdup (str);
return true; return true;