Locale:...:IBM857(3)
π Locale:...:IBM857(3) β yes bestie, we're reading a Perl manpage
ok so first things first, the header line on this thing is literally Locale:...:IBM857(3) and it lives under User Contributed Perl Documentation β that's the manual section it's filed in, IBM857(3), third section, Perl docs, contributed by users, all that. Folding it in up top so you know where we are π«Ά
β¨ NAME β¨
Locale::RecodeData::IBM857 β conversion routines for IBM857. That's the whole name, that's the whole vibe. It does one thing and it's iconic for it π
π SYNOPSIS π
This module is internal to libintl. Do not use directly!
Bestie I need you to READ that. Do not use directly. It's internal to libintl, it's not for you, it's not for me, it's for the machinery. Like the back rooms of a mall. You do not go in there π
πΈ DESCRIPTION πΈ
So this module is generated β not hand-written, generated β and what it contains is the conversion tables and routines for IBM857. That's it. Tables + routines. Very demure, very mindless, very load-bearing for something else entirely β¨
π COMMENTS π
The following comments have been extracted from the original charmap (so these are the receipts, straight from the source file, no cap):
version: 1.0
source: IBM NLS RM Vol2 SE09-8002-01, March 1990
alias CP857
alias 857
Okay so breaking that down: version: 1.0, sourced from IBM NLS RM Vol2 SE09-8002-01, March 1990 (a whole 1990 situation, vintage π), and it's got two aliases β CP857 and 857.
β οΈ and here's the important bit, the little footnote that matters: please note that aliases listed above are not necessarily valid! Like, they're listed, they might work, they might not, do not come for me if one of them flops π
π₯ CHARACTER TABLE π₯
The following table is sorted in the same order as the original charmap. All character codes are in hexadecimal β hexadecimal, bestie, base-16, get used to it.
And one glossary note so you're not confused when you see it: please read 'ISO-10646' as 'ISO-10646-UCS4'. Same thing, different name, the manpage is just being quirky about it π¦
The table itself is coming right up π
Ok so before we get into the bytes, a tiny reminder of how to read this thing: the first column is the Local byte, the middle one is the ISO-10646 code point it maps to, and the last one is the Description. Read it left to right, bestie π
The bottom of the table is the chill part β everything from 00 up to 7F maps to literally the same number in ISO-10646. Same byte, same code point, no cap π«Ά
Local | ISO-10646 | Description
-------+-----------+-------------------------------------------------
00 | 00000000 | NULL (NUL)
01 | 00000001 | START OF HEADING (SOH)
02 | 00000002 | START OF TEXT (STX)
03 | 00000003 | END OF TEXT (ETX)
04 | 00000004 | END OF TRANSMISSION (EOT)
05 | 00000005 | ENQUIRY (ENQ)
06 | 00000006 | ACKNOWLEDGE (ACK)
07 | 00000007 | BELL (BEL)
08 | 00000008 | BACKSPACE (BS)
09 | 00000009 | CHARACTER TABULATION (HT)
0A | 0000000A | LINE FEED (LF)
0B | 0000000B | LINE TABULATION (VT)
0C | 0000000C | FORM FEED (FF)
0D | 0000000D | CARRIAGE RETURN (CR)
0E | 0000000E | SHIFT OUT (SO)
0F | 0000000F | SHIFT IN (SI)
10 | 00000010 | DATALINK ESCAPE (DLE)
11 | 00000011 | DEVICE CONTROL ONE (DC1)
12 | 00000012 | DEVICE CONTROL TWO (DC2)
13 | 00000013 | DEVICE CONTROL THREE (DC3)
14 | 00000014 | DEVICE CONTROL FOUR (DC4)
15 | 00000015 | NEGATIVE ACKNOWLEDGE (NAK)
16 | 00000016 | SYNCHRONOUS IDLE (SYN)
17 | 00000017 | END OF TRANSMISSION BLOCK (ETB)
18 | 00000018 | CANCEL (CAN)
19 | 00000019 | END OF MEDIUM (EM)
1A | 0000001A | SUBSTITUTE (SUB)
1B | 0000001B | ESCAPE (ESC)
1C | 0000001C | FILE SEPARATOR (IS4)
1D | 0000001D | GROUP SEPARATOR (IS3)
1E | 0000001E | RECORD SEPARATOR (IS2)
1F | 0000001F | UNIT SEPARATOR (IS1)
That whole 00β1F block is the classic control-character era β the ones with names like NUL and BEL that our ancestors were lowkey obsessed with π
And then 20 through 7F is the iconic printable stretch β space, punctuation, digits, the alphabet, all of it, byte for byte identical to ISO-10646 β¨
20 | 00000020 | SPACE
21 | 00000021 | EXCLAMATION MARK
22 | 00000022 | QUOTATION MARK
23 | 00000023 | NUMBER SIGN
24 | 00000024 | DOLLAR SIGN
25 | 00000025 | PERCENT SIGN
26 | 00000026 | AMPERSAND
27 | 00000027 | APOSTROPHE
28 | 00000028 | LEFT PARENTHESIS
29 | 00000029 | RIGHT PARENTHESIS
2A | 0000002A | ASTERISK
2B | 0000002B | PLUS SIGN
2C | 0000002C | COMMA
2D | 0000002D | HYPHEN-MINUS
2E | 0000002E | FULL STOP
2F | 0000002F | SOLIDUS
30 | 00000030 | DIGIT ZERO
31 | 00000031 | DIGIT ONE
32 | 00000032 | DIGIT TWO
33 | 00000033 | DIGIT THREE
34 | 00000034 | DIGIT FOUR
35 | 00000035 | DIGIT FIVE
36 | 00000036 | DIGIT SIX
37 | 00000037 | DIGIT SEVEN
38 | 00000038 | DIGIT EIGHT
39 | 00000039 | DIGIT NINE
3A | 0000003A | COLON
3B | 0000003B | SEMICOLON
3C | 0000003C | LESS-THAN SIGN
3D | 0000003D | EQUALS SIGN
3E | 0000003E | GREATER-THAN SIGN
3F | 0000003F | QUESTION MARK
40 | 00000040 | COMMERCIAL AT
41 | 00000041 | LATIN CAPITAL LETTER A
42 | 00000042 | LATIN CAPITAL LETTER B
43 | 00000043 | LATIN CAPITAL LETTER C
44 | 00000044 | LATIN CAPITAL LETTER D
45 | 00000045 | LATIN CAPITAL LETTER E
46 | 00000046 | LATIN CAPITAL LETTER F
47 | 00000047 | LATIN CAPITAL LETTER G
48 | 00000048 | LATIN CAPITAL LETTER H
49 | 00000049 | LATIN CAPITAL LETTER I
4A | 0000004A | LATIN CAPITAL LETTER J
4B | 0000004B | LATIN CAPITAL LETTER K
4C | 0000004C | LATIN CAPITAL LETTER L
4D | 0000004D | LATIN CAPITAL LETTER M
4E | 0000004E | LATIN CAPITAL LETTER N
4F | 0000004F | LATIN CAPITAL LETTER O
50 | 00000050 | LATIN CAPITAL LETTER P
51 | 00000051 | LATIN CAPITAL LETTER Q
52 | 00000052 | LATIN CAPITAL LETTER R
53 | 00000053 | LATIN CAPITAL LETTER S
54 | 00000054 | LATIN CAPITAL LETTER T
55 | 00000055 | LATIN CAPITAL LETTER U
56 | 00000056 | LATIN CAPITAL LETTER V
57 | 00000057 | LATIN CAPITAL LETTER W
58 | 00000058 | LATIN CAPITAL LETTER X
59 | 00000059 | LATIN CAPITAL LETTER Y
5A | 0000005A | LATIN CAPITAL LETTER Z
5B | 0000005B | LEFT SQUARE BRACKET
5C | 0000005C | REVERSE SOLIDUS
5D | 0000005D | RIGHT SQUARE BRACKET
5E | 0000005E | CIRCUMFLEX ACCENT
5F | 0000005F | LOW LINE
60 | 00000060 | GRAVE ACCENT
61 | 00000061 | LATIN SMALL LETTER A
62 | 00000062 | LATIN SMALL LETTER B
63 | 00000063 | LATIN SMALL LETTER C
64 | 00000064 | LATIN SMALL LETTER D
65 | 00000065 | LATIN SMALL LETTER E
66 | 00000066 | LATIN SMALL LETTER F
67 | 00000067 | LATIN SMALL LETTER G
68 | 00000068 | LATIN SMALL LETTER H
69 | 00000069 | LATIN SMALL LETTER I
6A | 0000006A | LATIN SMALL LETTER J
6B | 0000006B | LATIN SMALL LETTER K
6C | 0000006C | LATIN SMALL LETTER L
6D | 0000006D | LATIN SMALL LETTER M
6E | 0000006E | LATIN SMALL LETTER N
6F | 0000006F | LATIN SMALL LETTER O
70 | 00000070 | LATIN SMALL LETTER P
71 | 00000071 | LATIN SMALL LETTER Q
72 | 00000072 | LATIN SMALL LETTER R
73 | 00000073 | LATIN SMALL LETTER S
74 | 00000074 | LATIN SMALL LETTER T
75 | 00000075 | LATIN SMALL LETTER U
76 | 00000076 | LATIN SMALL LETTER V
77 | 00000077 | LATIN SMALL LETTER W
78 | 00000078 | LATIN SMALL LETTER X
79 | 00000079 | LATIN SMALL LETTER Y
7A | 0000007A | LATIN SMALL LETTER Z
7B | 0000007B | LEFT CURLY BRACKET
7C | 0000007C | VERTICAL LINE
7D | 0000007D | RIGHT CURLY BRACKET
7E | 0000007E | TILDE
7F | 0000007F | DELETE (DEL)
Note the last one: 7F is DELETE (DEL) and it's also 0000007F β same number, just a cursed little guy π
Now the upper half hits diff π¦ This is where IBM857 stops being ASCII's twin and starts doing its own thing. Bytes 80β9F jump over to accented Latin letters in ISO-10646:
80 | 000000C7 | LATIN CAPITAL LETTER C WITH CEDILLA
81 | 000000FC | LATIN SMALL LETTER U WITH DIAERESIS
82 | 000000E9 | LATIN SMALL LETTER E WITH ACUTE
83 | 000000E2 | LATIN SMALL LETTER A WITH CIRCUMFLEX
84 | 000000E4 | LATIN SMALL LETTER A WITH DIAERESIS
85 | 000000E0 | LATIN SMALL LETTER A WITH GRAVE
86 | 000000E5 | LATIN SMALL LETTER A WITH RING ABOVE
87 | 000000E7 | LATIN SMALL LETTER C WITH CEDILLA
88 | 000000EA | LATIN SMALL LETTER E WITH CIRCUMFLEX
89 | 000000EB | LATIN SMALL LETTER E WITH DIAERESIS
8A | 000000E8 | LATIN SMALL LETTER E WITH GRAVE
8B | 000000EF | LATIN SMALL LETTER I WITH DIAERESIS
8C | 000000EE | LATIN SMALL LETTER I WITH CIRCUMFLEX
8D | 00000131 | LATIN SMALL LETTER DOTLESS I
8E | 000000C4 | LATIN CAPITAL LETTER A WITH DIAERESIS
8F | 000000C5 | LATIN CAPITAL LETTER A WITH RING ABOVE
90 | 000000C9 | LATIN CAPITAL LETTER E WITH ACUTE
91 | 000000E6 | LATIN SMALL LETTER AE
92 | 000000C6 | LATIN CAPITAL LETTER AE
93 | 000000F4 | LATIN SMALL LETTER O WITH CIRCUMFLEX
94 | 000000F6 | LATIN SMALL LETTER O WITH DIAERESIS
95 | 000000F2 | LATIN SMALL LETTER O WITH GRAVE
96 | 000000FB | LATIN SMALL LETTER U WITH CIRCUMFLEX
97 | 000000F9 | LATIN SMALL LETTER U WITH GRAVE
98 | 00000130 | LATIN CAPITAL LETTER I WITH DOT ABOVE
99 | 000000D6 | LATIN CAPITAL LETTER O WITH DIAERESIS
9A | 000000DC | LATIN CAPITAL LETTER U WITH DIAERESIS
9B | 000000F8 | LATIN SMALL LETTER O WITH STROKE
9C | 000000A3 | POUND SIGN
9D | 000000D8 | LATIN CAPITAL LETTER O WITH STROKE
9E | 0000015E | LATIN CAPITAL LETTER S WITH CEDILLA
9F | 0000015F | LATIN SMALL LETTER S WITH CEDILLA
See? 80 is a capital C with a cedilla, not the codepoint 00000080. Different numbers, different world π«
Next chunk, A0βBF β still very much accent-and-punctuation hours, plus a couple of culinary icons (ΒΌ, Β½) and some shade (LIGHT SHADE, MEDIUM SHADE, DARK SHADE) that are honestly giving aesthetic πΈ
A0 | 000000E1 | LATIN SMALL LETTER A WITH ACUTE
A1 | 000000ED | LATIN SMALL LETTER I WITH ACUTE
A2 | 000000F3 | LATIN SMALL LETTER O WITH ACUTE
A3 | 000000FA | LATIN SMALL LETTER U WITH ACUTE
A4 | 000000F1 | LATIN SMALL LETTER N WITH TILDE
A5 | 000000D1 | LATIN CAPITAL LETTER N WITH TILDE
A6 | 0000011E | LATIN CAPITAL LETTER G WITH BREVE
A7 | 0000011F | LATIN SMALL LETTER G WITH BREVE
A8 | 000000BF | INVERTED QUESTION MARK
A9 | 000000AE | REGISTERED SIGN
AA | 000000AC | NOT SIGN
AB | 000000BD | VULGAR FRACTION ONE HALF
AC | 000000BC | VULGAR FRACTION ONE QUARTER
AD | 000000A1 | INVERTED EXCLAMATION MARK
AE | 000000AB | LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
AF | 000000BB | RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
B0 | 00002591 | LIGHT SHADE
B1 | 00002592 | MEDIUM SHADE
B2 | 00002593 | DARK SHADE
B3 | 00002502 | BOX DRAWINGS LIGHT VERTICAL
B4 | 00002524 | BOX DRAWINGS LIGHT VERTICAL AND LEFT
B5 | 000000C1 | LATIN CAPITAL LETTER A WITH ACUTE
B6 | 000000C2 | LATIN CAPITAL LETTER A WITH CIRCUMFLEX
B7 | 000000C0 | LATIN CAPITAL LETTER A WITH GRAVE
B8 | 000000A9 | COPYRIGHT SIGN
B9 | 00002563 | BOX DRAWINGS DOUBLE VERTICAL AND LEFT
BA | 00002551 | BOX DRAWINGS DOUBLE VERTICAL
BB | 00002557 | BOX DRAWINGS DOUBLE DOWN AND LEFT
BC | 0000255D | BOX DRAWINGS DOUBLE UP AND LEFT
BD | 000000A2 | CENT SIGN
BE | 000000A5 | YEN SIGN
BF | 00002510 | BOX DRAWINGS LIGHT DOWN AND LEFT
The BOX DRAWINGS entries are the main character energy of this whole page, iykyk ππ
C0βDF is where it goes full art project π¨ Lots of box-drawing joins, plus some capitals and the occasional currency sign. And notice β the table literally skips D5. It goes D4 then straight to D6, fr fr, not me double-checking that π
C0 | 00002514 | BOX DRAWINGS LIGHT UP AND RIGHT
C1 | 00002534 | BOX DRAWINGS LIGHT UP AND HORIZONTAL
C2 | 0000252C | BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
C3 | 0000251C | BOX DRAWINGS LIGHT VERTICAL AND RIGHT
C4 | 00002500 | BOX DRAWINGS LIGHT HORIZONTAL
C5 | 0000253C | BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
C6 | 000000E3 | LATIN SMALL LETTER A WITH TILDE
C7 | 000000C3 | LATIN CAPITAL LETTER A WITH TILDE
C8 | 0000255A | BOX DRAWINGS DOUBLE UP AND RIGHT
C9 | 00002554 | BOX DRAWINGS DOUBLE DOWN AND RIGHT
CA | 00002569 | BOX DRAWINGS DOUBLE UP AND HORIZONTAL
CB | 00002566 | BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
CC | 00002560 | BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
CD | 00002550 | BOX DRAWINGS DOUBLE HORIZONTAL
CE | 0000256C | BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
CF | 000000A4 | CURRENCY SIGN
D0 | 000000BA | MASCULINE ORDINAL INDICATOR
D1 | 000000AA | FEMININE ORDINAL INDICATOR
D2 | 000000CA | LATIN CAPITAL LETTER E WITH CIRCUMFLEX
D3 | 000000CB | LATIN CAPITAL LETTER E WITH DIAERESIS
D4 | 000000C8 | LATIN CAPITAL LETTER E WITH GRAVE
D6 | 000000CD | LATIN CAPITAL LETTER I WITH ACUTE
D7 | 000000CE | LATIN CAPITAL LETTER I WITH CIRCUMFLEX
D8 | 000000CF | LATIN CAPITAL LETTER I WITH DIAERESIS
D9 | 00002518 | BOX DRAWINGS LIGHT UP AND LEFT
DA | 0000250C | BOX DRAWINGS LIGHT DOWN AND RIGHT
DB | 00002588 | FULL BLOCK
DC | 00002584 | LOWER HALF BLOCK
DD | 000000A6 | BROKEN BAR
DE | 000000CC | LATIN CAPITAL LETTER I WITH GRAVE
DF | 00002580 | UPPER HALF BLOCK
FULL BLOCK, LOWER HALF BLOCK and UPPER HALF BLOCK β the shading icons walked so your terminal progress bars could run π«Ά
And here's where this chunk of the table stops: E0 and friends, still going strong, with a little German Γ cameo in the middle π©πͺ
E0 | 000000D3 | LATIN CAPITAL LETTER O WITH ACUTE
E1 | 000000DF | LATIN SMALL LETTER SHARP S (German)
E2 | 000000D4 | LATIN CAPITAL LETTER O WITH CIRCUMFLEX
E3 | 000000D2 | LATIN CAPITAL LETTER O WITH GRAVE
E4 | 000000F5 | LATIN SMALL LETTER O WITH TILDE
That's LATIN SMALL LETTER SHARP S (German) at E1 β note the little (German) annotation, it's part of the entry, keep it π
The table keeps rolling past E4 though, so don't close the tab, bestie β the rest is right there in the next bit π
E5 | 000000D5 | LATIN CAPITAL LETTER O WITH TILDE
E6 | 000000B5 | MICRO SIGN
E8 | 000000D7 | MULTIPLICATION SIGN
E9 | 000000DA | LATIN CAPITAL LETTER U WITH ACUTE
EA | 000000DB | LATIN CAPITAL LETTER U WITH CIRCUMFLEX
EB | 000000D9 | LATIN CAPITAL LETTER U WITH GRAVE
EC | 000000EC | LATIN SMALL LETTER I WITH GRAVE
ED | 000000FF | LATIN SMALL LETTER Y WITH DIAERESIS
EE | 000000AF | MACRON
EF | 000000B4 | ACUTE ACCENT
F0 | 000000AD | SOFT HYPHEN
F1 | 000000B1 | PLUS-MINUS SIGN
F3 | 000000BE | VULGAR FRACTION THREE QUARTERS
F4 | 000000B6 | PILCROW SIGN
F5 | 000000A7 | SECTION SIGN
F6 | 000000F7 | DIVISION SIGN
F7 | 000000B8 | CEDILLA
F8 | 000000B0 | DEGREE SIGN
F9 | 000000A8 | DIAERESIS
FA | 000000B7 | MIDDLE DOT
FB | 000000B9 | SUPERSCRIPT ONE
FC | 000000B3 | SUPERSCRIPT THREE
FD | 000000B2 | SUPERSCRIPT TWO
FE | 000025A0 | BLACK SQUARE
FF | 000000A0 | NO-BREAK SPACE
okay bestie, we made it to the end of the table π take a second. breathe. you just read like 250 codepoints of IBM857 and honestly? iconic behavior. the last chunk is a whole vibe btw β E6 is the MICRO SIGN, F1 is PLUS-MINUS SIGN, F6 is DIVISION SIGN, F8 is DEGREE SIGN... it's giving "math class but make it retro" π and then FB, FC, FD roll up as SUPERSCRIPT ONE, SUPERSCRIPT THREE, SUPERSCRIPT TWO β yes, out of order, no I don't know why, don't @ me π
also quick shoutout to FE BLACK SQUARE 000025A0 and FF NO-BREAK SPACE 000000A0 β the final two, closing the whole table out like the credits of a movie π¬β¨
π AUTHOR
Copyright (C) 2002-2017 Guido Flohr <http://www.guido-flohr.net/> (<mailto:guido.flohr@cantanea.com>), all rights reserved. See the source code for details!code for details!
that's the author line, word for word, all rights reserved and everything π«Ά (yep, the doubled-up "code for details!" is literally what's in there β we don't fix, we don't snip, we report π)
π¦ SEE ALSO
go read those next, bestie, they're the whole ecosystem this page lives in π
aaaand that's the whole page!! π you now know more about IBM857 than like 99% of the people you will ever meet, and that's main character energy fr fr π
this little tour was brought to you by perl v5.42.0, dated 2025-01-22, and it lived at Locale:...:IBM857(3) in the User Contributed Perl Documentation. mwah π bye bestie, slay your encoding adventures β¨π
π¦ where this page comes from
- opensuse-leap 16.0: perl-libintl-perl 1.350.0-160000.2.2 Β· GPL-3.0-or-later
- opensuse-leap 16.0: perl-libintl-perl 1.350.0-160000.2.2 Β· GPL-3.0-or-later
- opensuse-leap 16.0: perl-libintl-perl 1.350.0-160000.2.2 Β· GPL-3.0-or-later
- opensuse-leap 16.0: perl-libintl-perl 1.350.0-160000.2.2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms