Answers Database
2.1i/1.5i Design Manager: Wind/U Warning (240): Unknown locale specified locale:C LANGUAGE: UNDEFINED SUBLANGUAGE:
Record #4563
Product Family: Software
Product Line: M1 Graphical/General
Product Part: Design Manager
Product Version: 2.1i
Problem Title:
2.1i/1.5i Design Manager: Wind/U Warning (240): Unknown locale specified locale:C LANGUAGE:
UNDEFINED SUBLANGUAGE:
Problem Description:
Urgency: Standard
General Description:
When attempting to invoke a GUI application from a workstation
command line (i.e - xilinx, timingan, promfmtr, jtagpgmr), the
following message may be displayed:
Wind/U Warning (240): Unknown locale specified locale:C LANGUAGE:
UNDEFINED SUBLANGUAGE:
Solution 1:
You can safely ignore this message - it does not conflict in any way with
your ability to execute the tools or implement with them.
FYI:
Wind/U (used to port Windows development programs over to the WS) uses
the LANGUAGE keyword for localization of its applications. The message
generated here warns about the fact that a certain language setting
(locale) either does not exist or is not found on your machine (i.e - 'C')
To determine which locales your system supports, use the locale command
with the -a option to list all installed locales. For example, type:
> locale -a
POSIX
C
iso_8859_1
de
en_AU
en_CA
en_UK
en_US
es
...
NOTE: The locale command is not available on all platforms,
so you may have to browse in directories such as /usr/lib/nls,
/usr/lib/locales, or /usr/lib/X11/nls to determine which locales are
supported.
What the Wind/U program does is it first calls "setlocale" to determine
whether "C" was found when you typed in "locale -a". It then tries to
match that up with what's found in the .Windu file. To check this:
1) Make sure that a .WindU file exists in your home directory (Not
the .windu/ directory, but the .WindU file).
2) Type in "less .WindU" from your home directory and search the
file for the [locales] section, which then should contain the following
2 lines:
C=NEUTRAL,NEUTRAL
en_US=ENGLISH,US
Add in the 2 lines above is they are not found
3)To change the LANG environment variable, type:
%setenv LANG <locale>
If a match is not found between the locale and .WindU file, then Wind/U
looks for a locale as defined by the LANG setting. Type in "env" from the
command line to determine what your "LANG" variable is set to.
4)If no .WindU file is found, try unsetting the environment variable
LANG by typing the following:
% unsetenv LANG
Or LANG= ; export LANG if you use sh shell.
End of Record #4563 - Last Modified: 11/18/99 12:16 |