Fixed utf8.codes to abide to Lua 5.3's implementation #1058

Merged
merged 1 commit into from Sep 10, 2015

Projects

None yet

2 participants

@willox
Collaborator
willox commented Sep 10, 2015
for x, y in utf8.codes( ... ) do

The y variable should be equal to the codepoint, not the byte sequence. This fixes that.

@willox willox utf8.codes now abides to Lua 5.3's implementation
for x, y in utf8.codes( ... ) do

"y" should be equal to the codepoint, not the byte sequence. This fixes
that
8edbe08
@robotboy655 robotboy655 merged commit e167e2d into garrynewman:master Sep 10, 2015
@willox willox deleted the unknown repository branch Sep 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment