verdy_p
Full Member
 
Karma: +0/-0
 France
Posts: 4
|
 |
« on: 2011-07-25, 22:17:27 » |
|
MS Font Validator bug:
It should also correctly parse the "head" table instead of reporting this (non-documented) internal exception in the validation report:
E0041 : An exception occurred preventing completion of table validation" System.FormatException: Le format de la chaîne d'entrée est incorrect. à System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) à System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) à System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info) à OTFontFileVal.val_head.Validate(Validator v, OTFontVal fontOwner) à OTFontFileVal.OTFontVal.Validate()
It may be related to the fact that I run the validator on a French version of Windows.
I absolutely have no hint about which string it cannot parse, because the error message does not reveal the content of the string it tries to parse, and not the name of the locale assumed there (in the NumberFormatInfo parameter).
It's possible thagt the StringToNumber() function was given wrong locale parameters, and expects a French comma and not an English dot for the decimal separator, or that we have the reverse situation in which another place in the program insternally generated a French-formatted number using a comma, that it cannot then parse with English rules.
|