From c2e4a61547c40784f5b1ac3458c1a5c226596253 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 13 Oct 2014 01:26:08 +0200 Subject: [PATCH] finally fixed some internal ISO-8859-1 character encodings --- ChangeLog | 5 +++++ src/conftime.h | 2 +- src/editor.c | 3 +++ src/main.h | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 95f6b453..dff5a36b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-10-13 + * eliminated historical ISO-8859-1 characters from source code files + (but still using them internally for special character encodings) + * changed output of special character for level sketch brushes to UTF-8 + 2014-10-08 * added handling of unselectable selectbox options and option headlines diff --git a/src/conftime.h b/src/conftime.h index 7eb8292b..0b03ffe9 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "2014-10-09 17:21" +#define COMPILE_DATE_STRING "2014-10-10 09:47" diff --git a/src/editor.c b/src/editor.c index 466231ec..cc1232f8 100644 --- a/src/editor.c +++ b/src/editor.c @@ -10074,6 +10074,9 @@ static void CopyBrushExt(int from_x, int from_y, int to_x, int to_y, else if (element >= NUM_FILE_ELEMENTS) element_mapped = EL_UNKNOWN; + // dump brush as level sketch text for the R'n'D forum: + // - large tiles: `xxx (0x60 ASCII) + // - small tiles: ¸xxx (0xb8 ISO-8859-1, 0xc2b8 UTF-8) printf("%s%03d", (mode == CB_DUMP_BRUSH ? "`" : "¸"), element_mapped); } diff --git a/src/main.h b/src/main.h index 08a540af..14e94143 100644 --- a/src/main.h +++ b/src/main.h @@ -1976,7 +1976,7 @@ #define PROGRAM_TITLE_STRING "Rocks'n'Diamonds" #define PROGRAM_AUTHOR_STRING "Holger Schemel" -#define PROGRAM_COPYRIGHT_STRING "Copyright \xa91995-2014 by Holger Schemel" +#define PROGRAM_COPYRIGHT_STRING "Copyright \xa9""1995-2014 by Holger Schemel" #define PROGRAM_EMAIL_STRING "info@artsoft.org" #define PROGRAM_WEBSITE_STRING "http://www.artsoft.org/" #define PROGRAM_GAME_BY_STRING "A Game by Artsoft Entertainment" -- 2.34.1