bugCal3D - 3d character animation library - Bugs: bug #19454, Cal3D model load broken

 
 
Show feedback again

bug #19454: Cal3D model load broken

Submitted by:  None
Submitted on:  Wed 15 Feb 2012 05:57:03 PM UTC  
 
Category: NoneSeverity: 4 - Important
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 15 Feb 2012 05:57:03 PM UTC, original submission:

Hello, I've got some problems loading some models in cal3d (see: https://github.com/alexeyd/blender2cal3d/issues/14 for an example) and, debugging on the code, it's because cal3d uses at some places the function "atof" to convert floats from strings, wich is locale dependent (on my "pt-BR" system, "atof" expected floats with commas, not points).

So, to fix that, floats must be gotten from strings in an locale independent way (using std::sstream, for example, or even sscanf).

I've joint a patch for version 0.11 (the last one released), but it's easy to write a similar patch to the svn version (also, you'll need to fix http://gna.org/bugs/?13940 as described there) to fully compile 0.11 on recent GCC.

Thanks,
Farrer

PS: Are cal3d still active? I believe it's important to release another version fixing this issue, as it breaks some models on various linux locales. As I believe other bugs were fixed since 2006 on the svn code, a new version is even more important...

Anonymous

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #15059:  diff_cald3.txt added by None (2kB - text/plain - The diff to fix only this bug on cal3d 0.11)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 15 Feb 2012 05:57:03 PM UTCNoneAttached File-=>Added diff_cald3.txt, #15059
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup