You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CSV Extension appears to be strictly using the local culture, when writing CSV files. The CSV writer appears to be using the invariant culture, but alas, the result is very much not invariant.
This produces a issue, where numbers are formatted according to the local settings -- in Denmark with a comma as decimal separator.
Reproducible example:
A simple json with 2 numeric values. When running on my Danish (da-DK) computer, the CSV writer outputs the numbers with Danish formatting, i.e., comma as decimal separator.
The CSV Extension appears to be strictly using the local culture, when writing CSV files. The CSV writer appears to be using the invariant culture, but alas, the result is very much not invariant.
data-migration-desktop-tool/Extensions/Csv/Cosmos.DataTransfer.CsvExtension/CsvFormatWriter.cs
Line 25 in 574cf77
This produces a issue, where numbers are formatted according to the local settings -- in Denmark with a comma as decimal separator.
Reproducible example:
A simple json with 2 numeric values. When running on my Danish (da-DK) computer, the CSV writer outputs the numbers with Danish formatting, i.e., comma as decimal separator.
input.json
migrationsettings.json
Result (with
dmt-2.1.6-win-x64
):Incidentially, this is the Nordic "standard" for CSV files (looking at you Excel!) and is in R known as csv2.
The output is much worse (or uglier) if the
Delimiter
is omitted or set to a comma:Solution:
I will make a pull request with a proposed solution.
The text was updated successfully, but these errors were encountered: