2
* Modifications Copyright 1993, 1994, 1995, 1996, 1999, 2000, 2001, 2002,
3
* 2004, 2005 by Paul Mattes.
4
* Original X11 Port Copyright 1990 by Jeff Sparkes.
5
* Permission to use, copy, modify, and distribute this software and its
6
* documentation for any purpose and without fee is hereby granted,
7
* provided that the above copyright notice appear in all copies and that
8
* both that copyright notice and this permission notice appear in
9
* supporting documentation.
11
* Copyright 1989 by Georgia Tech Research Corporation, Atlanta, GA 30332.
12
* All Rights Reserved. GTRC hereby grants public use of this software.
13
* Derivative works based on this software must incorporate this copyright
16
* x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
17
* be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
2
* Copyright (c) 1993-2009, Paul Mattes.
3
* Copyright (c) 1990, Jeff Sparkes.
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions are met:
8
* * Redistributions of source code must retain the above copyright
9
* notice, this list of conditions and the following disclaimer.
10
* * Redistributions in binary form must reproduce the above copyright
11
* notice, this list of conditions and the following disclaimer in the
12
* documentation and/or other materials provided with the distribution.
13
* * Neither the names of Paul Mattes, Jeff Sparkes nor the names of their
14
* contributors may be used to endorse or promote products derived from
15
* this software without specific prior written permission.
17
* THIS SOFTWARE IS PROVIDED BY PAUL MATTES AND JEFF SPARKES "AS IS" AND
18
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
* ARE DISCLAIMED. IN NO EVENT SHALL PAUL MATTES OR JEFF SPARKES BE LIABLE FOR
21
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
28
36
extern unsigned long cgcsgid;
29
37
#if defined(X3270_DBCS) /*[*/
30
38
extern unsigned long cgcsgid_dbcs;
31
extern char *converter_names;
32
extern char *encoding;
34
40
extern char *default_display_charset;
35
41
enum cs_result { CS_OKAY, CS_NOTFOUND, CS_BAD, CS_PREREQ, CS_ILLEGAL };
36
42
extern enum cs_result charset_init(char *csname);
37
43
extern char *get_charset_name(void);
44
extern char *get_host_codepage(void);
45
extern void charset_list(void);