@@ -264,6 +264,30 @@ static uint8_t pm_encoding_ibm857_table[256] = {
264
264
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Fx
265
265
};
266
266
267
+ /**
268
+ * Each element of the following table contains a bitfield that indicates a
269
+ * piece of information about the corresponding IBM860 character.
270
+ */
271
+ static uint8_t pm_encoding_ibm860_table [256 ] = {
272
+ // 0 1 2 3 4 5 6 7 8 9 A B C D E F
273
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 0x
274
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 1x
275
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 2x
276
+ 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 0 , 0 , 0 , 0 , 0 , 0 , // 3x
277
+ 0 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , // 4x
278
+ 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 0 , 0 , 0 , 0 , 0 , // 5x
279
+ 0 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , // 6x
280
+ 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 0 , 0 , 0 , 0 , 0 , // 7x
281
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 8x
282
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 9x
283
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Ax
284
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Bx
285
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Cx
286
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Dx
287
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Ex
288
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Fx
289
+ };
290
+
267
291
/**
268
292
* Each element of the following table contains a bitfield that indicates a
269
293
* piece of information about the corresponding ISO-8859-1 character.
@@ -939,6 +963,7 @@ PRISM_ENCODING_TABLE(ibm775)
939
963
PRISM_ENCODING_TABLE (ibm852 )
940
964
PRISM_ENCODING_TABLE (ibm855 )
941
965
PRISM_ENCODING_TABLE (ibm857 )
966
+ PRISM_ENCODING_TABLE (ibm860 )
942
967
PRISM_ENCODING_TABLE (iso_8859_1 )
943
968
PRISM_ENCODING_TABLE (iso_8859_2 )
944
969
PRISM_ENCODING_TABLE (iso_8859_3 )
@@ -1087,6 +1112,16 @@ pm_encoding_t pm_encoding_ibm857 = {
1087
1112
.multibyte = false
1088
1113
};
1089
1114
1115
+ /** IBM860 */
1116
+ pm_encoding_t pm_encoding_ibm860 = {
1117
+ .name = "IBM860" ,
1118
+ .char_width = pm_encoding_single_char_width ,
1119
+ .alnum_char = pm_encoding_ibm860_alnum_char ,
1120
+ .alpha_char = pm_encoding_ibm860_alpha_char ,
1121
+ .isupper_char = pm_encoding_ibm860_isupper_char ,
1122
+ .multibyte = false
1123
+ };
1124
+
1090
1125
/** ISO-8859-1 */
1091
1126
pm_encoding_t pm_encoding_iso_8859_1 = {
1092
1127
.name = "ISO-8859-1" ,
0 commit comments