Strange characters in expressions (Windows)(French locale)

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Post Reply
abdullah
Veteran
Posts: 4921
Joined: Sun May 04, 2014 3:16 pm
Contact:

Strange characters in expressions (Windows)(French locale)

Post by abdullah »

Hi there!

I was checking issue #4325.

It is not reproducible for me (or OpenBrain) in Linux. However, two different french windows users can reproduce.

The problem looks like this:

Image

So, it happens when creating an array like expression such as: Constraints[4]

User mario, identifies that the unsolicited character corresponds to the character that would appear with the combination of Alt Gr + the number used in the array, for example:

Alt + 4, ascii 4 ♦
Alt + 2, ascii 2 ☻
Alt + 7, ascii 7 •
Alt + 6, ascii 6 ♠

He indicates that the character appears just after releasing the Alt Gr key used for creating the closing bracket.

Maybe a non-french windows user could try to reproduce this (I say non-french because I do not know if the locale may be related to this behaviour).
Syres
Veteran
Posts: 2497
Joined: Thu Aug 09, 2018 11:14 am

Re: Strange characters in expressions (Windows)(French locale)

Post by Syres »

abdullah wrote: Sat Jun 06, 2020 1:42 pm Maybe a non-french windows user could try to reproduce this (I say non-french because I do not know if the locale may be related to this behaviour).
No fault found with a build close to the original bug reporter's and a recent build:

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20729 (Git)
Build type: Release
Branch: master
Hash: 028926ee9f78de50e520c72f2a22505e68930244
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21471 (Git)
Build type: Release
Branch: master
Hash: aac84ddf0f6413c3886e92c16fc493f74c593aad
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)
abdullah
Veteran
Posts: 4921
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Strange characters in expressions (Windows)(French locale)

Post by abdullah »

Syres wrote: Sat Jun 06, 2020 2:35 pm
abdullah wrote: Sat Jun 06, 2020 1:42 pm Maybe a non-french windows user could try to reproduce this (I say non-french because I do not know if the locale may be related to this behaviour).
No fault found with a build close to the original bug reporter's and a recent build:
Thank you.

Now we know that English locale + Windows 7 is not an issue.

I realise that both french users use Windows 10, anybody using Windows 10 in non-french locale could try to reproduce it?
Syres
Veteran
Posts: 2497
Joined: Thu Aug 09, 2018 11:14 am

Re: Strange characters in expressions (Windows)(French locale)

Post by Syres »

abdullah wrote: Sat Jun 06, 2020 5:34 pm I realise that both french users use Windows 10, anybody using Windows 10 in non-french locale could try to reproduce it?
If no-one's chipped in by tomorrow morning UK time I'll borrow a family member's Win 10 box and provide feedback.
User avatar
adrianinsaval
Veteran
Posts: 5414
Joined: Thu Apr 05, 2018 5:15 pm

Re: Strange characters in expressions (Windows)(French locale)

Post by adrianinsaval »

No issue here.

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21514 (Git)
Build type: Release
Branch: master
Hash: 89ddab33f692a9bd739171689f9ab0eb58d64b35
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Spanish/Paraguay (es_PY)
abdullah
Veteran
Posts: 4921
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Strange characters in expressions (Windows)(French locale)

Post by abdullah »

adrianinsaval wrote: Mon Jun 08, 2020 12:39 am No issue here.

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21514 (Git)
Build type: Release
Branch: master
Hash: 89ddab33f692a9bd739171689f9ab0eb58d64b35
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Spanish/Paraguay (es_PY)
Thanks. :)
abdullah
Veteran
Posts: 4921
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Strange characters in expressions (Windows)(French locale)

Post by abdullah »

Syres wrote: Sun Jun 07, 2020 10:03 pm
abdullah wrote: Sat Jun 06, 2020 5:34 pm I realise that both french users use Windows 10, anybody using Windows 10 in non-french locale could try to reproduce it?
If no-one's chipped in by tomorrow morning UK time I'll borrow a family member's Win 10 box and provide feedback.
It is very kind of you. I think it won't be necessary as Adrian was kind enough to check. Thanks anyway :D
ulrich1a
Veteran
Posts: 1958
Joined: Sun Jul 07, 2013 12:08 pm

Re: Strange characters in expressions (Windows)(French locale)

Post by ulrich1a »

No problem with:

Code: Select all

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19635 (Git)
Build type: Release
Branch: master
Hash: 757cfce10b87ca087d31ce38eb30f612bf55fcad
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
Ulrich
Post Reply