Opened 12 years ago

Last modified 3 years ago

#1325 closed defect

Replace ecvt() in FCollada with something else — at Initial Version

Reported by: historic_bruno Owned by:
Priority: Nice to Have Milestone: Alpha 24
Component: Core engine Keywords: patch
Cc: Patch:

Description

FCollada uses the deprecated POSIX function ecvt to convert floats to strings, but it's not available on FreeBSD and it would be nice to have a portable replacement. The result needs to be compatible with the COLLADA schema which uses XML's xs:double type for floats.

Possible solutions:

It's a good idea to avoid ecvt implementations that depend on dtoa, because it's also not available on FreeBSD and there are numerous buggy versions of that code around which apparently break with compiler optimizations.

Change History (0)

Note: See TracTickets for help on using tickets.