repo.or.cz
/
wine-gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 468575 - Scrape some gunk off the config/ grout, r=ted
[wine-gecko.git]
/
intl
/
chardet
/
tools
/
gencp1252.pl
blob
c42267896a3f1994ba488e1cb0e50abceb651f42
1
#!/usr/local/bin/perl
2
use
strict
;
3
require
"genverifier.pm"
;
4
use
genverifier
;
5
6
7
my
(
@cp1252_cls
);
8
my
(
@cp1252_st
);
9
my
(
$cp1252_ver
);
10
11
12
@cp1252_cls
= (
13
[
0x00
,
0x00
,
1
],
14
[
0x0e
,
0x0f
,
0
],
15
[
0x1b
,
0x1b
,
0
],
16
[
0x81
,
0x81
,
0
],
17
[
0x8d
,
0x8d
,
0
],
18
[
0x8f
,
0x8f
,
0
],
19
[
0x90
,
0x90
,
0
],
20
[
0x9d
,
0x9d
,
0
],
21
[
0xc0
,
0xd6
,
1
],
22
[
0xd8
,
0xf6
,
1
],
23
[
0xf8
,
0xff
,
1
],
24
[
0x8a
,
0x8a
,
1
],
25
[
0x8c
,
0x8c
,
1
],
26
[
0x8e
,
0x8e
,
1
],
27
[
0x9a
,
0x9a
,
1
],
28
[
0x9c
,
0x9c
,
1
],
29
[
0x9e
,
0x9e
,
1
],
30
[
0x9f
,
0x9f
,
1
],
31
[
0x00
,
0xff
,
2
],
32
);
33
34
package
genverifier
;
35
@cp1252_st
= (
36
# 0 1 2
37
1
,
3
,
0
,
# Start State - 0
38
1
,
1
,
1
,
# Error State - 1
39
2
,
2
,
2
,
# ItsMe State - 2
40
1
,
4
,
0
,
# State - 3
41
1
,
5
,
4
,
# State - 4
42
1
,
1
,
4
,
# State - 5
43
);
44
45
46
$cp1252_ver
=
genverifier
::
GenVerifier
(
"CP1252"
,
"windows-1252"
,
47
\
@cp1252_cls
,
3
,
\
@cp1252_st
);
48
print
$cp1252_ver
;
49
50
51