http://bugs.winehq.org/show_bug.cgi?id=34034
Bug #: 34034 Summary: Locale settings broke shader program generator. Product: Wine Version: 1.6-rc4 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: opengl AssignedTo: wine-bugs@winehq.org ReportedBy: hannibal@astral.lodz.pl Classification: Unclassified
I've encountered today shader program compilation problems. The error is in following line: PARAM yv12_coef = {0,666667, 0,166667, 0,833333, 0,333333};
This program was generated by wine itself: in arb_program_shader.c by code: shader_addline(buffer, "PARAM yv12_coef = {%f, %f, %f, %f};\n", 2.0f / 3.0f, 1.0f / 6.0f, (2.0f / 3.0f) + (1.0f / 6.0f), 1.0f / 3.0f);
The problem is that in polish locale (and others probably to), decimal separator is a comma not a dot.
The shader_(v)addline should use "C" locale for program generations (best) or this line above should have %f replaced by counted values.