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

fix: #9 use encoding cp1251 to open MCNP files and #8 'is' instead of 'equal' #10

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

dvp2015
Copy link

@dvp2015 dvp2015 commented Nov 14, 2021

The files may contains symbols, which are not unicode compatible.
By default Python opens files in 'utf-8' encoding and this causes
error for files produced from SuperMC for example.

The files may contains symbols, which are not unicode compatible.
By default Python opens files in 'utf-8' encoding and this causes
error for files produced from SuperMC for example.
@dvp2015 dvp2015 changed the title fix: #9 use encoding cp1251 to open MCNP files and #8 'is' instead of fix: #9 use encoding cp1251 to open MCNP files and #8 'is' instead of 'equal' Nov 14, 2021
@travleev travleev changed the base branch from master to fix-open-encoding November 15, 2021 08:33
@travleev travleev merged commit 2a1d275 into travleev:fix-open-encoding Nov 15, 2021
@travleev
Copy link
Owner

Currently fails on python2.7.

In general, I think it is not correct to hardcode the cp1251 encoding. Maybe as a command line option.

Can you provide an example input file that requires the cp1251 encoding, which can be added to travis_tests?

@dvp2015 dvp2015 deleted the fix-open-encoding branch November 16, 2021 21:31
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.

None yet

2 participants