Why does xclock start with the error 'Missing charsets in String to FontSet conversion'?

Solution Verified - Updated -


  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6


  • How do we prevent the following error message when we run the command xclock?
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset


Set the LC_ALL=C variable. As the user run:

$ export LC_ALL=C

To make this setting permanent for user, add it to the .bash_profile of user:
In /home/testUser/.bash_profile

export LC_ALL

Root Cause

  • Improper locale environment variable.

Diagnostic Steps

  • Check the error logs
  • Check the locale settings for the user with:
$ locale

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.