| Ticket UUID: | 2839285 | |||
| Title: | MS Windows: Input: chars ĉ, ĝ, ĵ, ... come out as c, g, j... | |||
| Type: | Bug | Version: | obsolete: 8.5.7 | |
| Submitter: | tolao | Created on: | 2009-08-17 22:41:11 | |
| Subsystem: | 68. Win Window Operations | Assigned To: | chengyemao | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2026-10-23 10:16:38 | |
| Resolution: | Fixed | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-10-23 10:16:38 | |||
| Description: |
System: Windows XP SP3 on Athlon XP Problem occurs with: *ActiveTcl 8.5.7.0 *ActiveTcl 8.4.19.1 *tclkit-8.5.7-win32.upx.exe *tclkit-8.4.17-win32.upx.exe *tclkit-8.4.1-win32.upx.exe *tclkit-8.4.0-win32.upx.exe (Other versions have not been tested but are likely to suffer as well). (1) install Esperanto keyboard from http://sites.google.com/site/windowskeyboards/Home (2) run this script: entry .e pack .e console show bind .e <KeyPress> [list puts %k:%K:%N:%A] (3) now change to the newly installed keyboard layout and you will see that when typing "ŝ" into the entry (on your "q" key if you're using a standard english keyboard), Tk will only get a normal "s" instead of a "ŝ". This is not a font problem, as it works correctly to paste a ŝ copied from another app like notepad into the entry and copying the wrongly obtained "s" and pasting it into notepad only gives an "s". The problem lies somewhere in the keyboard input. See the log of the sample script when consecutively hitting: c, ĉ, g, ĝ, h, ĥ, j, ĵ, s, ŝ, u, ŭ: 67:c:99:c 88:c:99:c 71:g:103:g 219:g:103:g 72:h:104:h 221:h:104:h 74:j:106:j 89:j:106:j 83:s:115:s 81:s:115:s 85:u:117:u 87:u:117:u Obviously, the keycodes differ, but for some reason not the characters interpreted by Tk. Note that this only happens on Windows; on linux/X with epo keymap it works like a charm. Bug #1572922 might be related (but then again, it happens on Linux, and this one on Windows). | |||
| User Comments: |
serhiy.storchaka added on 2026-10-23 10:16:38:
Merged into main [a444f9c1a5], 9.0 [73b1db6dde] and 8.6 [4a7d6f6b76]. serhiy.storchaka added on 2026-09-17 20:47:16: Same cause as [a9bd2ab98b]: characters outside the ANSI code page of the keyboard layout were replaced by their best-fit ASCII letter. Fixed on branch win-unicode-keyinput in [04cfb8ed11], verified on Windows 11 with the Maltese layout (ċ ġ ħ ż). tolao added on 2009-08-18 21:25:15: Maybe I should also note that I'm using a German Windows version with German (Germany) as codepage for unicode disabled apps. But then again, there doesn't exist any special Esperanto codepage, so this problem should appear on any language version/setting of Windows... tolao added on 2009-08-18 21:17:20: @dkf: I don't think so. Making the esperanto keyboard layout the system default so that it's already selected when starting Tcl/Tk by this script results in the same problems. Also note that typing Russian into the entry works fine – even when switching the keyboard layout while the script is already running. dkf added on 2009-08-18 16:41:52: Probably a failure to act correctly in response to the event sent when the keyboard mapping is changed. No idea what this will look like at the level of code. :-) | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki