On 25/06/2017 11:32, Stefano Mtangoo wrote:
>
>
> On Saturday, June 24, 2017 at 11:13:57 PM UTC+3, Eran Ifrah wrote:
>
> Hi,
>
> I got a CodeLite user which reported this bug report:
>
>
https://github.com/eranif/codelite/issues/1680
> <
https://github.com/eranif/codelite/issues/1680>
>
> In short:
> When he enters double quotes in a wxPropertyGrid with a text field
> like this: "Layer" it turns out to be: „Layer“
>
> Any idea where to start looking? any settings that I should be
> turning off in wxWidgets?
>
>
> I have found that single quote, double quote and caret character are
> troublesome even in my english installation for exampme If I have to
> Type "Images" correctly then I have to type "<space>Images"<space>. If I
> type just the word without spaces I get Ïmages asyou can see.
>
> Am not sure if it is the cause but am nowdays used to that!
>
>
I was often finding a similar problem when I emailed, (using Outlook),
commands for less experienced users to input on the command line. They
would, not unreasonably, copy the line that was in the email but outlook
had replaced ASCII single and double quotes with start & end single &
double quotes, also ASCII - was being replaced with hyphen or minus.
This was causing hard to diagnose errors, (which I was often sent screen
shots of).
Likewise a lot of our user & installation manuals are required to be
authored in MS-Word which does similar things.
In the end I wrote a parameter sanitiser for all of my scripts to use
which looks up any characters outside of the 0-127 address range and
makes the required substitutions or if no substitution is available in
it's list at least gives a sensible error message.
You could use a static function in your code as a validator which
performs a similar set of substitutions.
--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.
---
This email has been checked for viruses by AVG.
http://www.avg.com