Re: [AD] ESD patch

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


Shawn Hargreaves <shawn@xxxxxxxxxx> wrote:
> 
> Excellent! I really ought to install ESD myself one of these days, so I can 
> try it out...

It comes as an RPM (esound) on the Red Hat 6.0 CD.

> One minor fix is needed, though:
> 
> > usprintf(allegro_error, get_config_text("%s: can not open"), (server[0] ? 
> > server : "No server"));
> 
> You can't use things like server[0] or "No server" in a Unicode environment. 
> Instead, the test for the first char needs to be changed to ugetc(server), 
> and the constant string to uconvert_ascii("No server", tmpbuf). Otherwise 
> this driver will fall flat on its face as soon as someone decides to use it 
> in a 16 bit Unicode program, or with some other custom character encoding...

Oops.  I was recalling another message some time ago about this kind
of thing, but I guess it applies only to UTF8.  I'm off to read that
chapter on Unicode...

Ben Stover: Run `esd', and the server should be started.  It will give
you an audible signal if it works.

Peter
-- 
tjaden@xxxxxxxxxx - http://www.psynet.net/~tjaden/
"The closer I get the worse it becomes..." - Nine Inch Nails
(Perhaps Trent is singing about a software project of his.)



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