File: codepages.c

package info (click to toggle)
mtools 3.8-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,116 kB
  • ctags: 1,306
  • sloc: ansic: 11,489; sh: 2,052; makefile: 223; sed: 8
file content (100 lines) | stat: -rw-r--r-- 2,596 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#include "codepage.h"

/* MS-DOS doesn't use the same ASCII code as Unix does. The appearance
 * of the characters is defined using code pages. These code pages
 * aren't the same for all countries. For instance, some code pages
 * don't contain upper case accented characters. This affects two
 * things, relating to filenames:

 * 1. upper case characters. In short names, only upper case
 * characters are allowed.  This also holds for accented characters.
 * For instance, in a code page which doesn't contain accented
 * uppercase characters, the accented lowercase characters get
 * transformed into their unaccented counterparts. This is very bad
 * design. Indeed, stuff like national language support should never
 * affect filesystem integrity. And it does: A filename which is legal
 * in one country could be illegal in another one. Bad News for
 * frequent travellers.

 * long file names: Micro$oft has finally come to their senses and
 * uses a more standard mapping for the long file names.  They use
 * Unicode, which is basically a 32 bit version of ASCII. Its first
 * 256 characters are identical to Unix ASCII. Thus, the code page
 * also affects the correspondence between the codes used in long
 * names and those used in short names.

 * Such a bad design is rather unbelievable. That's why I quoted the
 * translation tables. BEGIN FAIR USE EXCERPT:
 */


Codepage_t codepages[]= {
	{ 437,
	  ""
	  "ܢPf"
	  "Ѫr"
	  "_______________"
	  "________________"
	  "________________"
	  "abgpSstftod_N"
	  "=<>||~Vn__",
	},

	{ 850,
	  ""
	  "_"
	  "Ѫ"
	  "_________"
	  "_____________"
	  "i____|I_"
	  "յޯ"
	  "___"
	},
	
	{ 852,
	  "uclZC"
	  "LlLlSsTtLc"
	  "AaZzEe zCs"
	  "_____ES____Zz"
	  "______Aa_______"
	  "Dde_r__TU_"
	  "NnSsRrUt"
	  "~.~~uRr_"
	},
	
	{ 860,      
	  ""
	  "ܢP"
	  "ѪҬ"
	  "_______________"
	  "________________"
	  "________________"
	  "abgpSstftod_N"
	  "=<>||~Vn__"
	},
	
	{ 863,      
	  "_"
	  "ܢf"
	  "| r"
	  "_______________"
	  "________________"
	  "________________"
	  "abgpSstftod_N"
	  "=<>||~Vn__"
	},
	
	{ 865,
	  ""
	  "Pf"
	  "Ѫr"
	  "_______________"
	  "________________"
	  "________________"
	  "abgpSstftod_N"
	  "=<>||~Vn__",
	},
	{ 0 }
};

/* END FAIR USE EXCERPT */