Skip to content

Commit 7f28ae8

Browse files
committed
utf8tocp: fixed Euro sign placement in CP808
1 parent 1d037ba commit 7f28ae8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

source/fdisk/utf8tocp/history.txt

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
utf8tocp history
33

44

5+
xxxxxxxx
6+
- fixed Euro sign placement in CP808
7+
58
20240918
69
- conversion is written to a file to avoid platform-specific CR/LF changes
710
- versioning scheme changed from vx.x.x to date-based YYYYMMDD

source/fdisk/utf8tocp/utf8tocp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static int loadlookuptable(char *cpname, unsigned short *lookuptable) {
155155
return(0);
156156
} else if (striseq(cpname, "808") == 0) { /* CP808 - like 866, but with Euro sign at 0xFD */
157157
loadlookuptable("866", lookuptable); /* load CP866 first */
158-
lookuptable[128 - 253] = 0x20AC; /* add the euro sign */
158+
lookuptable[253 - 128] = 0x20AC; /* add the euro sign */
159159
return(0);
160160
} else if (striseq(cpname, "850") == 0) { /* 850 codepage */
161161
lookuptable[155 - 128] = 0x00F8;

0 commit comments

Comments
 (0)