FontLab Forum
2012-05-22, 21:21:51 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the FontLab forum, read how to use it! Update: Archives from old MSN forums are now available on our forum.
 
   Home   Help Search Calendar Downloads Tags Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit SlashDot

Pages: [1]
  Print  
Author Topic: Locale bug (error E0041) when validating the "head" table in MS Font Validator  (Read 1491 times)
verdy_p
Full Member
***

Karma: +0/-0
France France

Posts: 4


Email
« 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.
Logged
Luc[as]
Beta: FontLab Studio Win
Hero Member
***

Karma: +3/-0
Netherlands Netherlands

Posts: 138



WWW
« Reply #1 on: 2012-01-17, 15:47:57 »

I get the same E0041 error on a US system with a US keyboard. (with English text instead of French in the details)
Using Win7 64 bit. The same FontValidator runs fine on an older PC with WindowsXP.

FontValidator has a problem with the current version of Windows?

The details to compare:
E0041 An exception occurred preventing completion of table validation.
System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info) at OTFontFileVal.val_head.Validate(Validator v, OTFontVal fontOwner) at OTFontFileVal.OTFontVal.Validate()
Logged
Tags: bug  head  locale 
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!