From 7f28ae8e30988d2c5c64130f0fdd78fda5d55b1d Mon Sep 17 00:00:00 2001 From: Bernd Boeckmann Date: Fri, 11 Oct 2024 20:12:03 +0200 Subject: [PATCH] utf8tocp: fixed Euro sign placement in CP808 --- source/fdisk/utf8tocp/history.txt | 3 +++ source/fdisk/utf8tocp/utf8tocp.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/fdisk/utf8tocp/history.txt b/source/fdisk/utf8tocp/history.txt index ae3fa94..9261386 100644 --- a/source/fdisk/utf8tocp/history.txt +++ b/source/fdisk/utf8tocp/history.txt @@ -2,6 +2,9 @@ utf8tocp history +xxxxxxxx + - fixed Euro sign placement in CP808 + 20240918 - conversion is written to a file to avoid platform-specific CR/LF changes - versioning scheme changed from vx.x.x to date-based YYYYMMDD diff --git a/source/fdisk/utf8tocp/utf8tocp.c b/source/fdisk/utf8tocp/utf8tocp.c index ec43f4d..962cb99 100644 --- a/source/fdisk/utf8tocp/utf8tocp.c +++ b/source/fdisk/utf8tocp/utf8tocp.c @@ -155,7 +155,7 @@ static int loadlookuptable(char *cpname, unsigned short *lookuptable) { return(0); } else if (striseq(cpname, "808") == 0) { /* CP808 - like 866, but with Euro sign at 0xFD */ loadlookuptable("866", lookuptable); /* load CP866 first */ - lookuptable[128 - 253] = 0x20AC; /* add the euro sign */ + lookuptable[253 - 128] = 0x20AC; /* add the euro sign */ return(0); } else if (striseq(cpname, "850") == 0) { /* 850 codepage */ lookuptable[155 - 128] = 0x00F8;