Skip to content

class-parse fails when windows culture is French #129

Closed
@softlion

Description

@softlion

While generating the binding for ExoPlayer, i stumbled upon this annoying bug.
A workaround is to change in Windows the default digit separator from "," (europe) to "." (usa)

Wrong generated code:

	[Register ("DIMEN_UNSET")]
	public const float DimenUnset = (float) 1,401298E-45;

Should be instead:

	[Register ("DIMEN_UNSET")]
	public const float DimenUnset = (float) 1.401298E-45;

This means the float value is formatted using the default culture instead of the invariant culture.

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