Differences From Artifact [bdf49c5547]:
- File src/OFURL.m — part of check-in [3eb411511e] at 2016-02-21 12:04:17 on branch trunk — Add +[OFURL fileURLWithPath:] (user: js, size: 10536) [annotate] [blame] [check-ins using]
To Artifact [ad4fe54b6f]:
- File
src/OFURL.m
— part of check-in
[09a0d12bae]
at
2016-06-05 21:17:57
on branch trunk
— Always cast to unsigned char for to{upper,lower}()
This is required as passing something signed to it is an error on
NetBSD, but passing anything else than a char is undefined on Linux. (user: js, size: 10546) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
81 82 83 84 85 86 87 | UTF8String = UTF8String2; if ((tmp = strstr(UTF8String, "://")) == NULL) @throw [OFInvalidFormatException exception]; for (tmp2 = UTF8String; tmp2 < tmp; tmp2++) | | | 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | UTF8String = UTF8String2; if ((tmp = strstr(UTF8String, "://")) == NULL) @throw [OFInvalidFormatException exception]; for (tmp2 = UTF8String; tmp2 < tmp; tmp2++) *tmp2 = tolower((unsigned char)*tmp2); _scheme = [[[OFString stringWithUTF8String: UTF8String length: tmp - UTF8String] stringByURLDecoding] copy]; UTF8String = tmp + 3; |
︙ | ︙ |