• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

“Warning: Missing charsets in String to FontSet conversion” – how to resolve the xclock warning message

by admin

Question :

Execution of xclock command triggers with the error ‘Missing charsets in String to FontSet conversion’.

# xclock
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset

Solution

:
This happens due to the incorrect setting for locale environment variable LC_ALL. In most cases, if you check the users locale variables using the below command you would fine that the varibale LC_ALL is empty.

# locale | grep LC_ALL
LC_ALL=

Follow the steps below to resolve it.

1. Set the LC_ALL=C variable using the below command

# export LC_ALL=C

2. To make this change permanent for a particular user, add the required entries in the .bash_profile file.

# vi /home/[username]/.bash_profile
LC_ALL=C
export LC_ALL

For example, to add it to a user “testuser”‘s profile :

# vi /home/testuser/.bash_profile
LC_ALL=C
export LC_ALL

3. To verify the settings :

# echo $LC_ALL
C

Filed Under: Linux, Solaris

Some more articles you might also be interested in …

  1. How to change the default permissions on /var/log/audit/audit.log file in CentOS/RHEL
  2. arp: command not found
  3. Linux OS Service ‘iptables’
  4. vim: command not found
  5. How To Disable Or Extend System Logging Rate-limit on CentOS/RHEL 6
  6. How to use “xfs_admin” command to change parameters of an XFS filesystem
  7. mdadm Command Examples in Linux
  8. How to remove a failed disk using luxadm and cfgadm
  9. egrep Command Examples in Linux
  10. playerctl Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright