[AD] Unicode (2)

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


I propose the two following steps:

1. I apply my uvsnprintf1b.diff patch that adds two calls to the API:

   int usnprintf(char *buf, int size, const char *format, ...);
   int uvsnprintf(char *buf, int size, const char *format, va_list args);

(where 'size' is the actual upper limit in bytes) and I usnprintf()-ify the
whole library (37 files to be modified),

2. Either:
    2a. Someone apply my ustrncpy.diff patch and we stay with:

      char *ustrncpy(char *dest, const char *src, int n);
      char *ustrncat(char *dest, const char *src, int n);

   or:
    2b. Someone modify and apply my ustrncpy.diff patch so as to get:

      char *ustrncpy(char *dest, const char *src, int size);
      char *ustrncat(char *dest, const char *src, int size);

and propagate the new behaviour to the whole library (10 files to be
modified).


I vote #1 + #2b.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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