Skip to content

Minus vs Hyphen/Dash. Different behaviour on Mac vs Windows in MVC View. #26778

@mkArtakMSFT

Description

@mkArtakMSFT

From @freshe on July 8, 2018 13:59

When doing ToString() on a C# Double in an MVC View i get different behaviour on Mac vs Windows.

On Windows i get the expected result on negative numbers where ToString() yields a "proper" minus sign that JavaScript can handle.

On Mac i instead get a dash/hyphen (long minus) that breaks the JavaScript code.

Win -
Mac −

Copied from original issue: aspnet/Mvc#8032

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions