| 44069 |
ripley |
1 |
/*
|
| 59039 |
ripley |
2 |
* Copyright (C) 2008 The R Core Team
|
| 44069 |
ripley |
3 |
*
|
|
|
4 |
* This program is free software; you can redistribute it and/or modify
|
|
|
5 |
* it under the terms of the GNU General Public License as published by
|
|
|
6 |
* the Free Software Foundation; either version 2 of the License, or
|
|
|
7 |
* (at your option) any later version.
|
|
|
8 |
*
|
|
|
9 |
* This program is distributed in the hope that it will be useful,
|
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
* GNU General Public License for more details.
|
|
|
13 |
*
|
|
|
14 |
* You should have received a copy of the GNU General Public License
|
|
|
15 |
* along with this program; if not, a copy is available at
|
| 68956 |
ripley |
16 |
* https://www.R-project.org/Licenses/
|
| 44069 |
ripley |
17 |
*/
|
|
|
18 |
|
|
|
19 |
/* used on console.c, EncodeString and do_cat */
|
|
|
20 |
|
| 74917 |
kalibera |
21 |
/* \002 is STX, \003 is ETX: they should not occur in other text,
|
| 44069 |
ripley |
22 |
But we use a 3-byte escape to be even safer. */
|
|
|
23 |
|
|
|
24 |
#ifdef IN_CONSOLE
|
|
|
25 |
char UTF8in[4] = "\002\377\376", UTF8out[4] = "\003\377\376";
|
|
|
26 |
#else
|
|
|
27 |
extern char UTF8in[4], UTF8out[4];
|
|
|
28 |
#endif
|