Java Desktop System Release 3 Administration Guide

Launching Applications in Legacy Locales

For applications that are not ready to migrate to Unicode UTF-8, you can create a launcher on a panel to start the application in a non-UTF-8 locale. You can also start command line interface (CLI) applications directly from the command line.

To Create a Launcher for an Application to Start in a Non-UTF-8 Locale

Perform the following steps:

  1. Right-click on the panel where you want to create the launcher.

  2. Choose Add to Panel -> Launcher.

  3. Use the following format to type the entry in the Command field of the Create Launcher dialog:

    env LANG=locale LC_ALL=locale application-name

    For example, if you want to launch an application called motif-app from the directory /usr/dt/bin in the Chinese Big5 locale, use the following string in the Command field:

    env LANG=zh_TW.BIG5 LC_ALL=zh_TW.BIG5 /usr/dt/bin/motif-app

    You might also need to specify the appropriate value for the LD_LIBRARY_PATH environment variable for the application.

  4. Click OK to create the launcher on the panel.

To Run a CLI Application in a Non-UTF-8 Locale

Perform the following steps:

  1. Start the Terminal application in the legacy locale. To open a Terminal window in a legacy locale, enter the following command:

    env LANG=locale LC_ALL=locale gnome-terminal --disable-factory

  2. Run the CLI application in the Terminal window.

Alternatively, perform the following steps:

  1. Start the Terminal application. To start Terminal, click Launch, then choose Applications -> Utilities -> Terminal.

  2. Choose Terminal -> Set Character Encoding, then switch the locale setting from UTF-8 to a legacy locale.

  3. Set the LANG and LC_ALL environment variables to the current shell.

  4. Run the CLI application in the Terminal window.