Keypad decimal incorrect on Portuguese (Portugal) keyboard layout

  • Thread starter Thread starter Sergio Henrique
  • Start date Start date
S

Sergio Henrique

I've noticed this while working on a java app but then I realised that it
was a general problem on all the system. I assume this is a bug in windows.

When using the Portuguese (Portugal) keyboard layout, the keypad decimal is
mapped to a point, which is wrong, it should be mapped to a comma. This
happens on all applications (notepad, command line, java app, etc) except on
Excel... probably because it recognizes the bug and does the work of
replacing input from that key with the proper decimal separator instead of
relying on the OS.

If I use the German (Germany) or Portuguese (Brazil) layouts, I get the
expected behaviour and all decimal key input is translated to commas
everywhere on the system.

Is there a solution to this problem? I can't find anything about this on the
web.
 
Sergio said:
I've noticed this while working on a java app but then I realised that it
was a general problem on all the system. I assume this is a bug in Windows.

When using the Portuguese (Portugal) keyboard layout, the keypad decimal is
mapped to a point, which is wrong, it should be mapped to a comma. This
happens on all applications (notepad, command line, java app, etc) except on
Excel... probably because it recognizes the bug and does the work of
replacing input from that key with the proper decimal separator instead of
relying on the OS.

If I use the German (Germany) or Portuguese (Brazil) layouts, I get the
expected behaviour and all decimal key input is translated to commas
everywhere on the system.

Is there a solution to this problem? I can't find anything about this on the
web.

Open Control Panel, "Regional and Language Options", Customize button,
and change the character used for Decimal, etc..
 
All locale options are correct. The proof is that on the other 2 layouts
I've mentioned below, it works fine, just not on that particular one. Also,
you can test this yourself. If you're in a locale where the decimal is a
point, just change it to a comma and then try out the Portuguese (Portugal)
keyboard layout. You'll see that the keypad decimal will always be mapped to
a point except on Excel, which for some reason probably does it's own
checks.

If you try out the German (Germany) or Portuguese (Brazil) layouts, which
both use commas as decimals too, you'll see that the keypad decimal will
always be correctly mapped into commas as expected.

I've also tried it on another Windows XP boxes and on a Windows 2003, the
bug reflects on all programs I've used on them except Excel, even on custom
apps made in java and visual basic. If I press the decimal key in this same
text I'm typing (outlook express), I'll get a point, and that's wrong.
 
Back
Top