Re: [AD] Bug report (config file routines)

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


On Tue, Oct 15, 2002 at 06:57:42PM +0200, Emeric Poupon wrote:
> I tried to load a text from a config file like that:
> 
> [name01]=my text, but it's finished by this char:"é"
> 
> And the program crashed when trying to load that (using get_config_string
> function) Note that adding a space after "é" solved the problem.
> What could we do to fix that?

I'm using Allegro CVS version and can't replicate this bug with the
attached test case. Maybe you are later misusing the string? Please read
the bug report guidelines at http://alleg.sf.net/help.html and send a
complete bug report, hopefully including a test case.
#include <allegro.h>

void main(void)
{
   allegro_init();
   set_config_file("test.cfg");
   allegro_message(get_config_string("language", "hello", "null"));
}
END_OF_MAIN()
[language]
hello = Hola capullóeè


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