Parsing tag attributes fails when using some non-English locales
In cairo-tag-attributes.c, some functions use sscanf
to parse integers and floats for example. As sscanf
formatting is locale-dependent, it means that the format defined for tag attributes depends on the current locale, which can introduce problems that are hard to debug.
For example, using the documentation string "page=3 pos=[3.1 6.2]"
doesn't work with a fr_FR
locale as the decimal separator is the comma.