AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  tmux requires UTF-8

    Posted Fri September 15, 2023 05:13 AM

    I have tmux 3.1b-1 installed.

    When I run the tmux command I get error:

    tmux: need UTF-8 locale (LC_CTYPE) but have ISO8859-1

    Any ideas how I can fix this?



    ------------------------------
    Glenn Robinson
    ------------------------------


  • 2.  RE: tmux requires UTF-8

    Posted Fri September 15, 2023 07:52 AM

    Hi Glenn,

    Let me know what locale is currently set in your environment ?



    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: tmux requires UTF-8

    Posted Sun September 17, 2023 03:48 AM

    $ locale
    LANG=en_GB
    LC_COLLATE="en_GB"
    LC_CTYPE="en_GB"
    LC_MONETARY="en_GB"
    LC_NUMERIC="en_GB"
    LC_TIME="en_GB"
    LC_MESSAGES="en_GB"
    LC_ALL=

    $ locale -a
    C
    POSIX
    en_GB.8859-15
    en_GB.IBM-1252
    en_GB.ISO8859-1
    en_GB
    en_US.8859-15
    en_US.IBM-858
    en_US.ISO8859-1
    en_US



    ------------------------------
    Glenn Robinson
    ------------------------------



  • 4.  RE: tmux requires UTF-8

    Posted Mon July 08, 2024 05:00 PM

    Seeing this with latest open source as well in AIX 7.3
    # oslevel -s
    7300-02-02-2420
    # tmux
    tmux: need UTF-8 locale (LC_CTYPE) but have ISO8859-1
    # locale
    LANG=en_US
    LC_COLLATE="en_US"
    LC_CTYPE="en_US"
    LC_MONETARY="en_US"
    LC_NUMERIC="en_US"
    LC_TIME="en_US"
    LC_MESSAGES="en_US"
    LC_ALL=



    ------------------------------
    Demian Phillips
    ------------------------------



  • 5.  RE: tmux requires UTF-8

    Posted Tue July 09, 2024 04:17 AM

    Install bos.loc.utf.* packages for your locale. E.g.:

    #lslpp -L bos.loc.utf.*
      Fileset                      Level  State  Type  Description (Uninstaller)
      ----------------------------------------------------------------------------
      bos.loc.utf.EN_US          7.3.2.0    C     F    Base System Locale UTF Code
                                                       Set - U. S. English 
    

    Then you will get UTF-8 locale in the output of locale -a:

    #locale -a
    C
    POSIX
    EN_US.UTF-8
    EN_US
    en_US.8859-15
    en_US.IBM-858
    en_US.ISO8859-1
    en_US.UTF-8
    en_US
    

    and it should work.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 6.  RE: tmux requires UTF-8

    Posted Tue July 09, 2024 09:27 AM

    Thanks. I missed finding the solution you posted because I searched on the exact error message I was given by the utility. 
    A more generic search without half of the error message provides this information as well.



    ------------------------------
    Demian Phillips
    ------------------------------