mjbWorld program - bug 1 - non ASCII characters in DEF/PROTO names

There is a bug when using non-ASCII characters (such as letters with dots over them) in DEF and PROTO names.

This is because the program incorrectly interprets these characters as whitespace. The code used by the program is:

whitespace = Character.isWhitespace(cvalue); // for java
if (cvalue==',') whitespace = true;

whitespace = Char::IsWhiteSpace(cvalue); // for .NET
if (cvalue==',') whitespace = true;

Somewhere between being read and this test the character appears to be converted to whitespace, can anyone help me to fix this?


metadata block
see also:

 

Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

 

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to this site, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

 

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2015 Martin John Baker - All rights reserved - privacy policy.