[AD] Debugging functions and Unicode

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


How should al_assert() and al_trace() behave with regard to Unicode ?

Currently:
- al_assert() isn't unicodified: it expects an ASCII file name and passes to
the assert handler or writes in the log file an ASCII string,
- al_trace() is fully unicodified: it expects an Unicode message and passes
to the trace handler or writes in the log file an Unicode string.

That's not very consistent and I don't think writing Unicode strings in the
log file is a good thing. I propose:
- either to completely revert to pure ASCII for the two functions,
- or to require ASCII inputs (file name or message), writes ASCII strings in
the log files but passes Unicode strings to the handlers (the function
get_config_text() already behaves the same).

My preference is rather for the latter solution but I wouldn't mind if the
former was chosen.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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