Skip to content

specify explicit encoding(UTF-8) for the calls in sconstruct and checkPot.py#13698

Merged
feerrenrut merged 2 commits into
nvaccess:masterfrom
cary-rowen:specifyExplicitEncoding
May 18, 2022
Merged

specify explicit encoding(UTF-8) for the calls in sconstruct and checkPot.py#13698
feerrenrut merged 2 commits into
nvaccess:masterfrom
cary-rowen:specifyExplicitEncoding

Conversation

@cary-rowen

Copy link
Copy Markdown
Contributor

Link to issue number:

None

Summary of the issue:

As a change required by #13675

Description of how this pull request fixes the issue:

According to this comment by @lukaszgo1 in #13675

Because Python function opens the text files using the default ANSI code page on Windows and the ANSI code page on system (and on AppVeyor) cannot correctly decode utf-8 text.
To fix this we need to specify explicit encoding(UTF-8) for the calls in sconstruct and test/checkPot.py

Testing strategy:

Execute scons pot to test

Known issues with pull request:

None

Change log entries:

New features
Changes: specify explicit encoding for the calls in sconstruct and checkPot.py
Bug fixes
For Developers

Code Review Checklist:

  • Pull Request description:
    • description is up to date
    • change log entries
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • API is compatible with existing add-ons.
  • Documentation:
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English

@cary-rowen cary-rowen requested a review from a team as a code owner May 16, 2022 02:21
@cary-rowen cary-rowen requested a review from seanbudd May 16, 2022 02:21
@seanbudd seanbudd requested review from feerrenrut May 17, 2022 00:43
@seanbudd

Copy link
Copy Markdown
Member

@feerrenrut - this is a small change but as I don't fully understand the current translation system I would like a second review

1 similar comment
@seanbudd

Copy link
Copy Markdown
Member

@feerrenrut - this is a small change but as I don't fully understand the current translation system I would like a second review

Comment thread sconstruct Outdated

@feerrenrut feerrenrut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @cary-rowen

@feerrenrut feerrenrut merged commit 77f0929 into nvaccess:master May 18, 2022
@nvaccessAuto nvaccessAuto added this to the 2022.2 milestone May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants