Skip to content
New issue

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

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

Already on GitHub? # to your account

Fixes internationalization bugs #930 #944 #376 #945

Merged
merged 4 commits into from
Dec 29, 2022

Conversation

PBrunot
Copy link
Contributor

@PBrunot PBrunot commented Oct 29, 2022

This reverts previous incorrect #930 fix.
I have reproduced and tested #930 fix with .net core 6.0 version as follows:
I have used LineChart.cs example with 277 different locales and all files open fine on my italian Excel version.
The generated files are attached.

During this process I found a bug with locale th-TH which I fixed under #944
The ru-ru culture bug found, under #376 is also checked and fixed.

testlinechart-locales.zip

@PBrunot PBrunot changed the title Fixes bugs #930 #944 Fixes internationalization bugs #930 #944 #376 Oct 29, 2022
@tonyqus tonyqus added this to the NPOI 2.6.0 milestone Oct 29, 2022
@tonyqus
Copy link
Member

tonyqus commented Oct 29, 2022

GetFilenameWithoutExtension is a very common and basic method. Please write unit tests against this method to make sure that it can work in different language/culture.

Without the PR fix, this testcase fails in th-TH culture.
With the PR fix, it passes and there are no regressions on other cultures.
@PBrunot
Copy link
Contributor Author

PBrunot commented Oct 30, 2022

Test case added, it fails on th-TH culture without the fix, and passes with the fix (StringComparison.Ordinal argument added).
This argument should probably added to all the StartsWith / EndsWith / LastIndexOf code inside PackagingUriHelper ; however as I did not find other bugs on other functions, I did not do it.

@tonyqus tonyqus modified the milestones: NPOI 2.6.0, NPOI 2.6.1 Nov 15, 2022
@tonyqus tonyqus merged commit 9f09b9a into nissl-lab:master Dec 29, 2022
@PBrunot PBrunot deleted the fix-bug-930 branch January 1, 2023 14:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants