Mercurial > hg > octave-lojdl > gnulib-hg
annotate lib/localcharset.h @ 17325:9d7698fd5b5f
openpty: fix bug where HAVE_OPENPTY is mistakenly 1
Problem reported by Mats Erik Andersson in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
* m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
openpty function exists, not merely when we intend to replace it.
This corrects the 2013-01-31 patch, which mistakenly defined
HAVE_OPENPTY even on hosts that lacked it.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 08 Feb 2013 08:03:23 -0800 |
parents | e542fd46ad6f |
children |
rev | line source |
---|---|
4106 | 1 /* Determine a canonical name for the current locale's character encoding. |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16366
diff
changeset
|
2 Copyright (C) 2000-2003, 2009-2013 Free Software Foundation, Inc. |
4337 | 3 This file is part of the GNU CHARSET Library. |
4106 | 4 |
4440
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4337
diff
changeset
|
5 This program is free software; you can redistribute it and/or modify |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4337
diff
changeset
|
6 it under the terms of the GNU General Public License as published by |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4337
diff
changeset
|
7 the Free Software Foundation; either version 2, or (at your option) |
4106 | 8 any later version. |
9 | |
10 This program is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
4440
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4337
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4337
diff
changeset
|
13 GNU General Public License for more details. |
4337 | 14 |
4440
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4337
diff
changeset
|
15 You should have received a copy of the GNU General Public License along |
16366
bb182ee4a09d
maint: replace FSF snail-mail addresses with URLs
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
16 with this program; if not, see <http://www.gnu.org/licenses/>. */ |
4106 | 17 |
4337 | 18 #ifndef _LOCALCHARSET_H |
19 #define _LOCALCHARSET_H | |
20 | |
21 | |
22 #ifdef __cplusplus | |
23 extern "C" { | |
24 #endif | |
25 | |
4106 | 26 |
27 /* Determine the current locale's character encoding, and canonicalize it | |
28 into one of the canonical names listed in config.charset. | |
29 The result must not be freed; it is statically allocated. | |
30 If the canonical name cannot be determined, the result is a non-canonical | |
31 name. */ | |
32 extern const char * locale_charset (void); | |
4337 | 33 |
34 | |
35 #ifdef __cplusplus | |
36 } | |
37 #endif | |
38 | |
39 | |
40 #endif /* _LOCALCHARSET_H */ |