Skip to content
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
This repository was archived by the owner on Aug 27, 2026. It is now read-only.

class-parse fails when windows culture is French #129

Closed

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.

Activity

  1. softlion commented on Mar 9, 2017

    @softlion
    Author

    another sample

    	[Register ("DEFAULT_BANDWIDTH_FRACTION")]
    	public const float DefaultBandwidthFraction = (float) 0,75;
    
  2. changed the title [-]class-parse fails with exoplayer when windows culture is French[/-] [+]class-parse fails when windows culture is French[/+] on Mar 9, 2017
  3. added a commit that references this issue on Mar 27, 2017
  4. added a commit that references this issue on Mar 28, 2017
    9ec3a88
  5. locked and limited conversation to collaborators on Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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