Open nicola-spb opened 6 years ago
I started write test for russian and found this bug with FmtNumber. Run test and get: Expected '1 123 456,56' Got '1 123 456,56'
Expected '1 123 456,56' Got '1 123 456,56'
And I found this: bytes: '%!(EXTRA []uint8=[49 194 160 49 50 51 194 160 52 53 54 44 53 54], string='; ', []uint8=[49 32 49 50 51 32 52 53 54 44 53 54])
bytes: '%!(EXTRA []uint8=[49 194 160 49 50 51 194 160 52 53 54 44 53 54], string='; ', []uint8=[49 32 49 50 51 32 52 53 54 44 53 54])
Sign "group" in Russian is 194 160 is NO-BREAK SPACE and it`s not equals with 32 SPACE. If someone will write test then he will get error in tests.
I started write test for russian and found this bug with FmtNumber. Run test and get:
Expected '1 123 456,56' Got '1 123 456,56'
And I found this:
bytes: '%!(EXTRA []uint8=[49 194 160 49 50 51 194 160 52 53 54 44 53 54], string='; ', []uint8=[49 32 49 50 51 32 52 53 54 44 53 54])
Sign "group" in Russian is 194 160 is NO-BREAK SPACE and it`s not equals with 32 SPACE. If someone will write test then he will get error in tests.