Skip to content

float value in csv is not parsed correctly in the culture that separated comma / 小数点の区切りがカンマのculture環境で正常にcsvがパースされない。 #16

@youten

Description

@youten

float value in csv is not parsed correctly in the culture that separated comma
小数点の区切りがカンマのculture環境で正常にcsvがパースされない。

using CultureInfo.CurrentCulture = new CultureInfo(“pt-BR”);, can reproduce on Unity Editor.
CultureInfo.CurrentCulture = new CultureInfo(“pt-BR”); あたりで適当にcultureを変更するとUnityエディタ上でもおかしくなるのが再現できる。

このあたりが CultureInfo.InvariantCulture 対応である必要がある
https://github.com/unity3d-jp/UnityChanSpringBone/blob/release/1.1/Runtime/Utility/ObjectBuilding/StringQueueObjectBuilder.cs#L14
https://github.com/unity3d-jp/UnityChanSpringBone/blob/release/1.1/Runtime/Utility/ObjectBuilding/StringQueueObjectBuilder.cs#L24-L26
https://github.com/unity3d-jp/UnityChanSpringBone/blob/release/1.1/Runtime/Utility/ObjectBuilding/StringQueueObjectBuilder.cs#L166

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions