[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | POLYCENTER Console Manager |
Notice: | Kits, Scans, Docs on CSC32:: as PCM$KITS:,PCM$DOCS:, PCM$SCANS: |
Moderator: | CSC32::BUTTERWORTH |
|
Created: | Thu Aug 06 1992 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 1541 |
Total number of notes: | 6564 |
137.0. "uid-file selection method" by JRDV04::YAMAGATA () Fri Nov 26 1993 07:31
Is uid-file selection method of CM queer,isn't it?
CM has cmeditm_en_US.uid and cmeditm_en_GB.uid in /usr/lib/X11/uid .
If user's locale is en_US, CM selects cmeditm_en_US.uid .
When the locale is en_GB, it selects cmeditm_en_GB.uid .
Users of other countries, such as Japan, are always warned that
MRM can't find a uid of his locale (ex. cmeditm_ja_JP.uid )
and it will use cmeditm_en_US.uid instead.
But according to P21-2 of OSF/Motif Programmer's Guide Revison 1.1 ,
MRM searches the following pathnames
/usr/lib/X11/%L/uid/%N/%U
/usr/lib/X11/%l/uid/%N/%U
/usr/lib/X11/uid/%N/%U
/usr/lib/X11/%L/uid/%U
/usr/lib/X11/%l/uid/%U
/usr/lib/X11/uid/%U
/usr/include/X11/uid/%U
%U The uid file name
%N The class name of the application
%L The value of the xnlLanuage resource or the LANG evironment variables.
%l The language component of the xnlLanguage resource or the LANG
envrionment variable
Then,why don't you use this rule?
For example,change the names and locations of the files as followers.
/usr/lib/X11/uid/cmeditm_en_US.uid -> /usr/lib/X11/uid/cmeditm.uid
/usr/lib/X11/uid/cmeditm_en_GB.uid -> /usr/lib/X11/en_GB/uid/cmeditm.uid
In this case,
if the xnlLanguage is en_GB, MRM will use /usr/lib/X11/en_GB/uid/cmeditm.uid.
And if the locale isn't en_GB, MRM will select /usr/lib/X11/uid/cmeditm.uid
automatically.
Many applications (ex. DECwrite,PHIGS,GKS) conform to this rule.
T.R | Title | User | Personal Name | Date | Lines |
---|
137.1 | | OPG::PHILIP | And through the square window... | Fri Nov 26 1993 12:23 | 13 |
|
Thanks for the input, we (I) didnt do it this way
because I wasnt sure how to do it correctly!
Now that I know, I will modify our code so that it
works the correct way.
You will see this change in the EFT update as its
too late for the EFT release now.
Cheers,
Phil
|
137.2 | | JRDV04::YAMAGATA | | Sun Nov 28 1993 23:59 | 3 |
| Thank you for your quick response.
-- Tatsuki Yamagata (ISE/DEC-Japan)
|