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 Feb 15 17:57:03 2012  
Category: NoneSeverity: 4 - Important
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Wed Feb 15 17:57:03 2012, 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.


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...



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

Attach File(s):

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 mp3butcher (Updated the item)
  • -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.


    Error: not logged in



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Jan 21 20:00:21 2015mp3butcherOpen/ClosedOpen=>Closed
    Wed Feb 15 17:57:03 2012NoneAttached File-=>Added diff_cald3.txt, #15059
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup