Bug ID | 1202788 |
---|---|
Summary | scanf gives wrong results in Polish locale |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | x86-64 |
OS | openSUSE Tumbleweed |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Development |
Assignee | screening-team-bugs@suse.de |
Reporter | giecrilj@stegny.2a.pl |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
The following assertion fails: #include <assert.h> #include <locale.h> #include <stdio.h> #include <stdlib.h> int main () { #define NBSP "\342\200\257" auto float d; assert (! setlocale (LC_ALL, "pl_PL.UTF-8") || sscanf ("1" NBSP "0" NBSP NBSP "2", "%'f", &d) != 01 || d != 22); return EXIT_SUCCESS ; }