-
Notifications
You must be signed in to change notification settings - Fork 1
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
PDIndexer is not working on computer with the decimal separator set as ',' instead of '.' #2
Comments
Thank you for reporting the bug! Indeed, as you say, the property 'CultureInfo.InvariantCulture' would seem to solve the issue. Great advice, thanks! In the latest version (v4.447), I tried incorporating this property. Please check it on Loïc-san's PC. I hope it works well. |
Thank you for your fast reaction.
My thinking is that you did something somewhere which looks at the computer, decides which decimal format it should expect data depending on the region, but then uses the actual decimal separator of the computer (which can be set independently of the expected region), and everything is messed up by the fact that with the new .NET framework, the software cannot launch at all with the comma setting. I'm not sure what the best way to solve all these issues is, and I'm not sure why you do not have problems in your own environment. For now I have reverted to v4.446 on my own computer, but that does not solve the original issue. Here is a link to download an example spectrum, its correct opening in v4.446, and a bad opening when changing manually the characters. https://filesender.renater.fr/?s=download&token=b1981cf4-125f-42e1-a17f-9d21c6b7e78a |
This time it works, thank you very much! I think a last small improvement might be useful. When PDIndexer is opened and closed for the first time, it writes a bunch of keys in the registry, including the 'Version' key. This key value is set to either "4.448" or "4,448" depending on windows parameters at the moment when PDIndexer was opened. Apart from that, the opening of file written with either dot or comma work, which is amazing, thanks a lot! |
Oh, that's a great idea that makes me see things in a new light. I've implemented it right away. The problem you pointed out should be solved in ver. 4.449 and later. |
Amazing! Thank you again for your work and your reactivity :) |
Hello and thank you for this marvelous software.
We've encountered an issue when trying to use PDIndexer on computers with the windows decimal separator set as ',' instead of '.'
The data (in .xy form for example) is not opening at all in these cases.
We've tried editing the data by replacing the '.' in the xy file by ',' and in that case the data opens, but not correctly (plotted spectra have no real sense and do no look like the original data).
When we change the decimal separator in the windows settings, everything works correctly. However this solution does not work for shared computer where other users have set up software with their regular ',' decimal separator, and thus prevent us from changing it.
We've tried looking at your software code, and it looks like you tried to account for this issue, but it still does not work.
It seems like using 'CultureInfo.InvariantCulture' in the parse function may be a way to solve this issue.
If you have the time, could you look into this problem?
Thanks in advance,
Best regards,
Loïc Toraille
The text was updated successfully, but these errors were encountered: