KEMBAR78
[jit] Fix ord() when dealing with utf8 chars by driazati · Pull Request #19423 · pytorch/pytorch · GitHub
Skip to content

Conversation

@driazati
Copy link
Contributor

@driazati driazati commented Apr 18, 2019

Stack from ghstack:

Differential Revision: D15002847

Previously utf-8 bytes > 127 were wrapping around to negative values, casting to a uint8_t fixes this.

test/test_jit.py Outdated
self.checkScript(fn, ("h"))
self.checkScript(fn, ("y"))

s = u'\u00a3'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this s is unused?

@nairbv nairbv added the oncall: jit Add this issue/PR to JIT oncall triage queue label Apr 18, 2019
gh-metadata: pytorch pytorch 19435 gh/driazati/17/head
@driazati driazati requested review from eellison and suo April 18, 2019 21:23
@driazati driazati force-pushed the gh/driazati/16/head branch from 4abc2ab to 22cd308 Compare April 18, 2019 21:24
@zou3519 zou3519 deleted the gh/driazati/16/head branch April 19, 2019 17:30
@facebook-github-bot
Copy link
Contributor

@driazati merged this pull request in e7b9526.

zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this pull request May 6, 2019
Summary:
Pull Request resolved: pytorch#19423
ghimport-source-id: e744948

Reviewed By: eellison

Differential Revision: D15002847

Pulled By: driazati

fbshipit-source-id: 4560cebcfca695447423d48d65ed364e7dbdbedb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants