http://bugs.freedesktop.org/show_bug.cgi?id=24531





--- Comment #2 from Neil Roberts <[email protected]>  2009-10-14 15:33:58 
PST ---
Created an attachment (id=30419)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=30419)
Patch to make the lexer use _mesa_strtod

(In reply to comment #1)
> Can you test this patch?

Thanks. I justed it quickly with the xlib driver (I'm assuming it uses the same
code path) but it doesn't work. I think the offending strtod is in
src/mesa/shader/program_lexer.l. This directly calls strtod instead of the
_mesa wrapper. This patch changes the lexer to use the _mesa wrapper which
fixes it for me.

It seems a shame to fix it just for glibc sources. There is a float parser in
./src/mesa/drivers/dri/common/xmlconfig.c which isn't affected by the locale, I
wonder if we could move that somewhere more accesible and use that instead?


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to