Skip to content

Commit

Permalink
FIX: invalid ENHEX edge result
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jun 6, 2019
1 parent 1bc566f commit 76c87a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/n-strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ static struct digest {
REBUNI c = up[0];
up++;

if (c > 0x80) {// all non-ASCII characters *must* be percent encoded
if (c >= 0x80) {// all non-ASCII characters *must* be percent encoded
encoded_size = Encode_UTF8_Char(encoded, c);
goto char_needs_encoding;
} else {
Expand Down
1 change: 1 addition & 0 deletions src/tests/units/series-test.r3
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ Rebol [
--assert "%22%25-.%3C%3E%5C%1F%60%7B%7C%7D~" = enhex {"%-.<>\^_`{|}~}
; --assert %%C5%A1ik = enhex %šik ;<-- this does not work yet!
--assert "šik" = to-string dehex enhex to-binary "šik"
--assert "%C2%80" = enhex to-string #{80}


===end-group===
Expand Down

0 comments on commit 76c87a9

Please sign in to comment.