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.
http://bugs.winehq.org/show_bug.cgi?id=34034
--- Comment #1 from Ken Sharp kennybobs@o2.co.uk 2013-07-13 17:27:38 CDT --- What is the application? http://www.winehq.org/docs/wineusr-guide/bug-reporting
http://bugs.winehq.org/show_bug.cgi?id=34034
--- Comment #2 from Konrad Rzepecki hannibal@astral.lodz.pl 2013-07-14 12:05:48 CDT --- GTA III SA from steam, but IT DOESN'T MATTER. I show exactly point where it's, and why it's a bug.
http://bugs.winehq.org/show_bug.cgi?id=34034
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan@codeweavers.com Component|opengl |directx-d3d
--- Comment #3 from Henri Verbeet hverbeet@gmail.com 2013-07-15 02:51:20 CDT --- We should probably move shader_glsl_ftoa() to the common code and use it in arb_program_shader.c as well. Ideally we wouldn't need to use the ARB_program code for blitting when GLSL is used though.
http://bugs.winehq.org/show_bug.cgi?id=34034
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b73464a41337992c612e1403537 | |5c0da70d7eb36 Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #4 from Henri Verbeet hverbeet@gmail.com 2013-11-21 12:01:21 CST --- I believe this should be fixed by commit b73464a41337992c612e14035375c0da70d7eb36. Please reopen if that's not the case.
http://bugs.winehq.org/show_bug.cgi?id=34034
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2013-11-22 12:51:12 CST --- Closing bugs fixed in 1.7.7.
https://bugs.winehq.org/show_bug.cgi?id=34034
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.6.x
https://bugs.winehq.org/show_bug.cgi?id=34034
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.6.x |---
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Removing 1.6.x milestone from bugs included in 1.6.2.