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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4106
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
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
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
3 This file is part of the GNU CHARSET Library.
4106
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
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
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 any later version.
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
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
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
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
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
4337
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
18 #ifndef _LOCALCHARSET_H
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
19 #define _LOCALCHARSET_H
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
20
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
21
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
22 #ifdef __cplusplus
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
23 extern "C" {
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
24 #endif
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
25
4106
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 /* Determine the current locale's character encoding, and canonicalize it
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 into one of the canonical names listed in config.charset.
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 The result must not be freed; it is statically allocated.
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 If the canonical name cannot be determined, the result is a non-canonical
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 name. */
aa367eec7a72 New file localcharset.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 extern const char * locale_charset (void);
4337
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
33
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
34
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
35 #ifdef __cplusplus
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
36 }
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
37 #endif
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
38
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
39
bb36dc0e4dd4 Upgrade to gettext-0.12.1.
Bruno Haible <bruno@clisp.org>
parents: 4106
diff changeset
40 #endif /* _LOCALCHARSET_H */