mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Workaround for bug in strxfrm() in Microsoft's newer C runtimes. (#343919,
2006-06-08 Tor Lillqvist <tml@novell.com> * glib/gunicollate.c (msc_strxfrm_wrapper): Workaround for bug in strxfrm() in Microsoft's newer C runtimes. (#343919, Kazuki Iwamoto)
This commit is contained in:
parent
7b9c3b95bf
commit
c795837524
@ -1,3 +1,9 @@
|
||||
2006-06-08 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gunicollate.c (msc_strxfrm_wrapper): Workaround for bug in
|
||||
strxfrm() in Microsoft's newer C runtimes. (#343919, Kazuki
|
||||
Iwamoto)
|
||||
|
||||
2006-06-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version
|
||||
|
@ -1,3 +1,9 @@
|
||||
2006-06-08 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gunicollate.c (msc_strxfrm_wrapper): Workaround for bug in
|
||||
strxfrm() in Microsoft's newer C runtimes. (#343919, Kazuki
|
||||
Iwamoto)
|
||||
|
||||
2006-06-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version
|
||||
|
@ -30,6 +30,24 @@
|
||||
#include "gunicodeprivate.h"
|
||||
#include "galias.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
/* Workaround for bug in MSVCR80.DLL */
|
||||
static size_t
|
||||
msc_strxfrm_wrapper (char *string1,
|
||||
const char *string2,
|
||||
size_t count)
|
||||
{
|
||||
if (!string1 || count <= 0)
|
||||
{
|
||||
char tmp;
|
||||
|
||||
return strxfrm (&tmp, string2, 1);
|
||||
}
|
||||
return strxfrm (string1, string2, count);
|
||||
}
|
||||
#define strxfrm msc_strxfrm_wrapper
|
||||
#endif
|
||||
|
||||
/**
|
||||
* g_utf8_collate:
|
||||
* @str1: a UTF-8 encoded string
|
||||
|
Loading…
Reference in New Issue
Block a user