ksh displays multibyte characters incorrectly when 'KEYBD trap' is enabled in profile file.

Solution Verified - Updated -

Issue

  • When 'KEYBD trap' is enabled, which it is by default when ksh is used as a login shell, ksh cannot display multibyte characters correctly.

    If you type 'あいうえお' (Glyphs valid in ja_JP.UTF-8) in a terminal, it will instead display 'BDFHJ'.

    $ BDFHJ
    

    This issue has been verified in the ja_JP.UTF-8 locale but most likely impacts all multibyte locales (including locales based on the SJIS, various EUC, and UTF-8 character sets). Locales where the most commonly used characters are single byte characters (e.g. en_US.UTF-8) will see little to no impact as the usage of multibyte UTF-8 characters would be rare.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • ksh (when used as the login shell for a user)
  • Multibyte locales including ja_JP.UTF-8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content