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

Solution verified - Updated on

Request a new translation or translation update

A translation for your language preference does not exist. Click below to request a translation for your selected language.

Submit request

Environment

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

Issue

  • 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

Resolution

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

LC_ALL=C
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.