aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-16 20:14:02 +0000
committerOmar Polo <op@omarpolo.com>2021-01-16 20:14:02 +0000
commit881dc835d05029b30bcb7dd229d2a0583fa6e360 (patch)
treeb657ddc8dd042bf357a4b5679ca0ad6fee15947a /iri.c
parent881a9dd9c2aebbf73f333dd3d8be4ce5400f717f (diff)
wording
Diffstat (limited to 'iri.c')
-rw-r--r--iri.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/iri.c b/iri.c
index d6f6d24..26ee920 100644
--- a/iri.c
+++ b/iri.c
@@ -81,9 +81,10 @@ parse_scheme(struct parser *p)
/* normalize the scheme (i.e. lowercase it)
*
* XXX: since we cannot have good things, tolower
- * depends on the LC_CTYPE locale. The good things is
- * that we're sure p->iri points to something in the
- * ASCII range, so it shouldn't do weird stuff. */
+ * behaviour depends on the LC_CTYPE locale. The good
+ * news is that we're sure p->iri points to something
+ * that's in the ASCII range, so tolower can't
+ * mis-behave on some systems due to the locale. */
*p->iri = tolower(*p->iri);
p->iri++;
} while (isalnum(*p->iri)