[PATCH] Replace ecvt() in FCollada with something else
|Reported by:||historic_bruno||Owned by:||Stan|
|Priority:||Nice to Have||Milestone:||Alpha 24|
Description (last modified by )
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.
- std::stringstream, or
- snprintf perhaps with the 'g' flag, if it can be massaged into a
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 (15)
comment:4 by , 10 years ago
|Keywords:||patch review added|
|Summary:||Replace ecvt() in FCollada with something else → [PATCH] Replace ecvt() in FCollada with something else|