Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue C62117

Problem using non-ASCII characters in dictionary words
Submitted by: Fredrick Ramsberg     Appeared in: Compiler 6.21 or before     Fixed in: Compiler 6.30
Problem

On a platform where char is signed (all except RISC OS, OS/2 and VMS, according to Inform's header file), if you use a non-ASCII character in a dictionary word, the dictionary word is corrupted, amd the compiler may crash.

The problem can be worked around by using @ escapes instead of literal non-ASCII characters in dictionary words.

Solution (by Kevin Bracey)

Line 871 of text.c should be changed from

  k2 = iso_to_alphabet_grid[k];

to

  k2 = iso_to_alphabet_grid[(uchar) k];


Last updated 2 May 2008. The librarian in charge of this page is Roger Firth. Please email any comments, suggestions or corrections to roger@firthworks.com.