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;