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

Read Mekset as UTF8 #6087

Merged
merged 2 commits into from
Oct 12, 2024
Merged

Read Mekset as UTF8 #6087

merged 2 commits into from
Oct 12, 2024

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Oct 11, 2024

Fixes unit icon lookup for units with diacritics in the name such as Götterdämmerung and Gùn by reading the mekset file as UTF8. This error only appeared in releases, not in the IDE. Also adds the Locale.ROOT to the uppercase calls to make it (supposedly) less dependent on locale.
Also fixes small errors in the mekset itself.

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.11%. Comparing base (ff4ae0a) to head (281736f).
Report is 184 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6087      +/-   ##
============================================
- Coverage     29.11%   29.11%   -0.01%     
+ Complexity    13979    13978       -1     
============================================
  Files          2601     2601              
  Lines        267090   267090              
  Branches      47749    47749              
============================================
- Hits          77771    77769       -2     
- Misses       185412   185415       +3     
+ Partials       3907     3906       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SJuliez
Copy link
Member Author

SJuliez commented Oct 11, 2024

CodeQL is about logging stuff that had been logged before. Not relevant for this fix.

@IllianiCBT
Copy link
Collaborator

@SJuliez Am I right to think the CodeQL errors are false-positives?

@IllianiCBT IllianiCBT merged commit 898d948 into MegaMek:master Oct 12, 2024
5 of 6 checks passed
@IllianiCBT
Copy link
Collaborator

I realized I could have got my answer by just reading one message up >_>

@SJuliez SJuliez deleted the mekset-as-UTF8 branch October 15, 2024 19:32
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.

3 participants