gtktextbuffer serialization decimal point/comma confusion
Submitted by Tor Lillqvist
serialize_value() in gtktextbufferserialize.c serializes double values using g_value_transform() which means that value_transform_double_string() gets used which simply uses g_strdup_sprintf() with a %f format. This means the serialized value has a locale-dependent decimal symbol.
deserialize_value() on the other hand deserializes double values using g_ascii_strtod() which accepts only a decimal point.
Clearly this means problems. The values of text attributes like "scale" don't get parsed correctly in a locale that uses decimal comma.
Mitch also said on IRC that "(if at all!) the code needs to check for a transformable type last in order to be as safe as possible against app-registered transform functions"