Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 1 | /* Copyright 1996,1997,2001,2002,2009 Alain Knaff. |
| 2 | * This file is part of mtools. |
| 3 | * |
| 4 | * Mtools 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 3 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * Mtools 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 Mtools. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | typedef struct Codepage_l { |
Yi Kong | 39bbd96 | 2022-01-09 19:41:38 +0800 | [diff] [blame] | 19 | int nr; |
Alistair Delva | beaee83 | 2021-02-24 11:27:23 -0800 | [diff] [blame] | 20 | unsigned char tounix[128]; |
| 21 | } Codepage_t; |
| 22 | |
| 23 | |
| 24 | typedef struct country_l { |
| 25 | int country; |
| 26 | int codepage; |
| 27 | int default_codepage; |
| 28 | int to_upper; |
| 29 | } country_t; |
| 30 | |
| 31 | |
| 32 | void init_codepage(void); |
| 33 | unsigned char to_dos(unsigned char c); |
| 34 | void to_unix(char *a, int n); |
| 35 | char contents_to_unix(char a); |
| 36 | |
| 37 | extern Codepage_t *Codepage; |
| 38 | extern char *mstoupper; |
| 39 | extern country_t countries[]; |
| 40 | extern unsigned char toucase[][128]; |
| 41 | extern Codepage_t codepages[]; |
| 42 | extern char *country_string; |