[Bug 34034] New: Locale settings broke shader program generator.

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jul 13 05:53:20 CDT 2013


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 at winehq.org
        ReportedBy: hannibal at 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.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list