Mercurial > hg > octave-kai > gnulib-hg
comparison lib/strftime.c @ 5402:afb82efdf199
(DO_MULTIBYTE): Check for wchar.h, too.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 09 Nov 2004 20:55:12 +0000 |
parents | 27c6099e6a9f |
children | 1b5e702ecdd1 |
comparison
equal
deleted
inserted
replaced
5401:cb3afa6ab9f9 | 5402:afb82efdf199 |
---|---|
1 /* Copyright (C) 1991-1999, 2000, 2001, 2003 Free Software Foundation, Inc. | 1 /* Copyright (C) 1991-1999, 2000, 2001, 2003, 2004 Free Software |
2 Foundation, Inc. | |
2 | 3 |
3 NOTE: The canonical source of this file is maintained with the GNU C Library. | 4 NOTE: The canonical source of this file is maintained with the GNU C Library. |
4 Bugs can be reported to bug-glibc@prep.ai.mit.edu. | 5 Bugs can be reported to bug-glibc@prep.ai.mit.edu. |
5 | 6 |
6 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
54 multibyte sequences are safe in formats. Multibyte sequences are | 55 multibyte sequences are safe in formats. Multibyte sequences are |
55 safe if they cannot contain byte sequences that look like format | 56 safe if they cannot contain byte sequences that look like format |
56 conversion specifications. The GNU C Library uses UTF8 multibyte | 57 conversion specifications. The GNU C Library uses UTF8 multibyte |
57 encoding, which is safe for formats, but strftime.c can be used | 58 encoding, which is safe for formats, but strftime.c can be used |
58 with other C libraries that use unsafe encodings. */ | 59 with other C libraries that use unsafe encodings. */ |
59 #define DO_MULTIBYTE (HAVE_MBLEN && ! MULTIBYTE_IS_FORMAT_SAFE) | 60 #define DO_MULTIBYTE (HAVE_MBLEN && HAVE_WCHAR_H && ! MULTIBYTE_IS_FORMAT_SAFE) |
60 | 61 |
61 #if DO_MULTIBYTE | 62 #if DO_MULTIBYTE |
62 # if HAVE_MBRLEN | 63 # if HAVE_MBRLEN |
63 # include <wchar.h> | 64 # include <wchar.h> |
64 # else | 65 # else |