Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1122280 - Handle UTF-8 encoding in URI #5999

Merged
merged 1 commit into from
May 14, 2015

Conversation

hellemar
Copy link
Contributor

URL annotations handled as UTF-8 to accommodate some bad PDFs. For proper 7-bit ASCII this makes no difference. Fixes Bug 1122280.

Reasoning:
According to ISO 32000-1:2008, section 12.6.4.7, URI should be encoded in 7-bit ASCII, i.e. not handling UTF-8 in URI is, strictly speaking, not a bug.
However some bad PDFs may have URIs in UTF-8 encoding and other PDF viewers are able to produce the intended result.

@timvandermeij
Copy link
Contributor

Once you have addressed these comments, could you make sure to squash the commits into one? See https://github.com/mozilla/pdf.js/wiki/Squashing-Commits on how to do this easily if you are not familiar with squashing commits. Thank you!

…oper 7-bit ASCII this makes no difference. Fixes Bug 1122280.
@hellemar hellemar force-pushed the handle-utf8-in-url branch from c8db9eb to a61a4b1 Compare May 10, 2015 22:48
@hellemar
Copy link
Contributor Author

Thanks for the comments, I have updated the code comments to address them.

@hellemar
Copy link
Contributor Author

Is there anything I should do to run the automatic tests on the squashed commit or is it unnecessary since only code comments have been changed?

@timvandermeij
Copy link
Contributor

I will trigger the tests right now. They will run once tests for another PR are finished.

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_test from @timvandermeij received. Current queue size: 1

Live output at: http://107.21.233.14:8877/9099995ead2e44a/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 1

Live output at: http://107.22.172.223:8877/d456f8126f5dd46/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/d456f8126f5dd46/output.txt

Total script time: 19.48 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/9099995ead2e44a/output.txt

Total script time: 22.89 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij timvandermeij self-assigned this May 13, 2015
@timvandermeij
Copy link
Contributor

@timvandermeij
Copy link
Contributor

/botio lint

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_lint from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/35fc2c2d23fe980/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_lint from @timvandermeij received. Current queue size: 0

Live output at: http://107.22.172.223:8877/119ba8652e8c2b5/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/35fc2c2d23fe980/output.txt

Total script time: 0.89 mins

  • Lint: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/119ba8652e8c2b5/output.txt

Total script time: 1.11 mins

  • Lint: Passed

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/2d812dfa51813d6/output.txt

timvandermeij added a commit that referenced this pull request May 14, 2015
Bug 1122280 - Handle UTF-8 encoding in URI
@timvandermeij timvandermeij merged commit 67816bd into mozilla:master May 14, 2015
@timvandermeij
Copy link
Contributor

Thank you for the patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants