kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #06559
Re: Eeshema wrong saves the components with unicode names.
> #if defined(KICAD_GOST) // <- This place is a little strange.
> if( Name2[ii] == ' ' )
> #else
>
> if( Name2[ii] <= ' ' ) // <- This string execute by
> default
> #endif
>
> Name2[ii] = '~';
> }
> Solving the problem might be: if( (unsigned char)Name2[ii] <= ' ' ).
I think this is correct, and is probably the solution that the KICAD_GOST author
could have used. I checked in a fix, which encapsulates the two places this was
being done into the new static function toUTFTildaText()
Please report any problems with it.
Dick
References