InvariantCulture for operand to string conversion in Instruction.ToString() #870
Loading…
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Instruction.ToString() uses the culture of the current thread, which can be problematic for converting doubles and floats to a string.
This is just a string, right? No need to convert a string into the invariant culture.
For context: we're writing a C compiler using Cecil, and hit the issue while dumping the methods' IL code and comparing it in the compiler unit tests (one contributor had a locale that uses different number format, and broke the tests). So, I agree that these changes should be made.
Did not notice that. Thanks!
Looking good, thank you!