Re: [AD] small dat2c fixes

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Tue, 2004-04-20 at 23:15, Eric Botcazou wrote:
> > 1. When specifying no header file name, dat2c would crash.
> 
> Ouch!
> 
> > 2. Outputting characters >= 127 causes problems when viewing files as
> > UTF8, so I made them be escaped like < 32.
> 
> Could you elaborate on this?  What does it change for the output?
> 

Well, instead of invalid unicode all over the place, I get \xXX. E.g.
"\x80" instead of some binary symbol inside the string. I was
recompiling an old project with an inline font, and since it was written
long ago, before I had switched my locale to UTF8, it somehow broke when
saving - so most text got garbage. That's why I had to use xf2pcx and
dat2c to import a similiar font to fix the program again. Using the \xXX
notion means it is independent of the used encoding of the .c file.

-- 
Elias Pschernig <elias@xxxxxxxxxx>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/