Re: [osg-users] Qt 4.4.0 + C locale + collada (dae) plugin

2008-11-25 Thread Ralph Kern
Hi Luc,

you could try to patch the plugin to set the locale to C before
reading and restore afterwards.

But you might be careful to threading issues, because setlocale() is
working on a per process basis.

regards Ralph

Frauciel Luc schrieb:
 Hi,
 
 This summer, a problem have been spotted and solved about .osg format, and 
 the use of Qt that modify C locale
 http://groups.google.com/group/osg-users/browse_thread/thread/f5a53aaeed71b585/2b0454460d959e2d?lnk=gstq=qt+locale#2b0454460d959e2d
 
 I've got a similar problem with DAE plugin.
 However, since the atof call is done in collada dom and not the plugin, there 
 is no way to use the same solution (custom osg_atof).
 Do someone have an hint on how this problem can be solved ?
 
 Luc
 

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Qt 4.4.0 + C locale + collada (dae) plugin

2008-11-25 Thread Frauciel Luc
Hi,

This summer, a problem have been spotted and solved about .osg format, and the 
use of Qt that modify C locale
http://groups.google.com/group/osg-users/browse_thread/thread/f5a53aaeed71b585/2b0454460d959e2d?lnk=gstq=qt+locale#2b0454460d959e2d

I've got a similar problem with DAE plugin.
However, since the atof call is done in collada dom and not the plugin, there 
is no way to use the same solution (custom osg_atof).
Do someone have an hint on how this problem can be solved ?

Luc

Luc FRAUCIEL - BRGM
Unité Calcul, 3D et réalité virtuelle
Service Systèmes et Technologies de l'Information
3, av C. Guillemin BP 36009 - 45060 Orléans Cedex 2, France
Tél. 02 38 64 35 65
Fax 02 38 64 39 70
**

Pensez à l'environnement avant d'imprimer ce message
 Think Environment before printing
 
Le contenu de ce mél et de ses pièces jointes est destiné à l'usage exclusif du 
(des) destinataire(s) désigné
(s) 
comme tel(s). 
En cas de réception par erreur, le signaler à son expéditeur et ne pas en 
divulguer le contenu. 
L'absence de virus a été vérifiée à l'émission, il convient néanmoins de 
s'assurer de l'absence de 
contamination à sa réception.
 
The contents of this email and any attachments areconfidential. They are 
intended for the named recipient
(s) 
only. 
If you have received this email in error please notifythe system manager or the 
sender immediately and do 
not 
disclose the contents to anyone or make copies. 
eSafe scanned this email for viruses, vandals and malicious content.
 
**

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org