Skip to content

Commit

Permalink
utf8tocp: fixed Euro sign placement in CP808
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann committed Oct 11, 2024
1 parent 1d037ba commit 7f28ae8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions source/fdisk/utf8tocp/history.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source/fdisk/utf8tocp/utf8tocp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f28ae8

Please sign in to comment.