Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report for wx.stc and wx.richtextctrl #2606

Open
Joonhyun-Kim opened this issue Sep 10, 2024 · 2 comments
Open

Bug Report for wx.stc and wx.richtextctrl #2606

Joonhyun-Kim opened this issue Sep 10, 2024 · 2 comments

Comments

@Joonhyun-Kim
Copy link

Operating system:
wxPython version & source:
Python version & source:

Description of the problem:

Code Example (click to expand)
# Put code sample here

Updated Bug Report (English)

Title:

Korean Characters Disappear When Entering Punctuation with Shift Key in wx.stc.StyledTextCtrl and wx.RichTextCtrl (Windows 11)

Description:

  • Environment:

    • OS: Windows 11 (Issue present)
    • OS: Windows 10 Pro (Issue not present)
    • wxPython version: 4.2.1
    • Python version: 3.12.5
  • Issue:
    When typing Korean characters in wx.stc.StyledTextCtrl or wx.RichTextCtrl on Windows 11, entering specific punctuation (e.g., ^, ") using the Shift key causes the last entered Korean character to disappear.

    Example: After typing "안녕" (Hello in Korean), if I press Shift + 6 (to insert ^) or Shift + ' (to insert "), the last character "녕" disappears. This results in "안^" or "안"".

  • Steps to Reproduce:

    1. On Windows 11, open an editor using wx.stc.StyledTextCtrl or wx.RichTextCtrl.
    2. Type Korean characters (e.g., "안녕").
    3. Press Shift + a punctuation key (e.g., ", ^).
    4. The last Korean character disappears, and only the punctuation remains.
  • Expected Behavior:
    The Korean characters should remain in the text, and the punctuation should be added without any characters being deleted.

  • Actual Behavior:
    The last Korean character disappears, and only the punctuation is inserted.

  • Additional Information:

    • The issue occurs on Windows 11 but does not appear on Windows 10 Pro.
    • The issue happens in both wx.stc.StyledTextCtrl and wx.RichTextCtrl.
@swt2c
Copy link
Collaborator

swt2c commented Sep 10, 2024

I have a hunch this might be the same problem as: #2446

Can you please try one of the latest snapshot builds and see if the problem is resolved there:
https://wxpython.org/Phoenix/snapshot-builds/

@swt2c
Copy link
Collaborator

swt2c commented Sep 12, 2024

Please also try v4.2.2 (just released) and let us know if the problem has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants