Skip to content

Fix: added culture invariance to fix dumped obj files problems#3

Open
pulguinha1304 wants to merge 1 commit into
Nenkai:masterfrom
pulguinha1304:master
Open

Fix: added culture invariance to fix dumped obj files problems#3
pulguinha1304 wants to merge 1 commit into
Nenkai:masterfrom
pulguinha1304:master

Conversation

@pulguinha1304
Copy link
Copy Markdown

As mentioned in depth on issue #2, this change aims to add a Culture Invariace to the project in order to solve problems generated by running the dumping feature of the application on systems which their region format is set to a country that uses comma as decimal separators.

This simple change aims to bring overall consistency in the results of the dumped vertex data to files when ran by users across all countries.

After this change, tests were made with CAR4 files locally with dotnet run and also by compiling and running the executable, which delivered the intended results: valid .obj files regardless of system region format.

@Nenkai
Copy link
Copy Markdown
Owner

Nenkai commented May 14, 2026

Turning off culture settings as opposed to just writing the obj with invariant culture is not a good solution.

@pulguinha1304
Copy link
Copy Markdown
Author

Should we then implement a more tightly scoped solution by using invariant culture only on the thread of the application at Program.cs? From my research, that would be an equivalent alternative, just with a tighter scope. I could rerun the tests to make sure.

@Nenkai
Copy link
Copy Markdown
Owner

Nenkai commented May 14, 2026

Are you using AI?

@pulguinha1304
Copy link
Copy Markdown
Author

No.

The first solution I submitted was based on this Github .NET documentation.

The second solution that I broadly mentioned after your comment, was an alternative that I found when researching a way to apply the same setting but on a limited scope. See this .NET docs and this.

I'm trying to read all docs and learn along the way to contribute to the tool, so no AI slop is being generated on my end. All that said, I'm not a seasoned developer, so any suggestions/directions are greatly appreciated.

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.

2 participants