Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

S11.1 Locales .... can't suss what is wrong

325 views
Skip to first unread message

YTC#1

unread,
Apr 18, 2013, 8:08:05 AM4/18/13
to
This started on a customer site, trying to get the en_GB.UTF-8 locale on
then system when I noticed it was set to en_US.UTF-8

Using my laptop as an example I have these current issues

I have applied the extra facets, so you can see en_GB is there

---8<
bruce@ytc-m10:~$ pkg facet
FACETS VALUE
facet.locale.pt_BR True
facet.locale.es_ES True
facet.locale.en_US True
facet.locale.zh_TW True
facet.locale.zh_CN True
facet.locale.de_DE True
facet.locale.fr_FR True
facet.locale.it_IT True
facet.locale.ko_* True
facet.locale.ja_* True
facet.local.en_GB True
facet.locale.es True
facet.locale.de True
facet.locale.zh True
facet.locale.ko True
facet.locale.it True
facet.locale.pt True
facet.locale.fr True
facet.locale.en True
facet.locale.ja True
facet.locale.* False
---8<

Set the service

---8<
bruce@ytc-m10:~$ svccfg -s svc:/system/environment:init listprop
environment/LANG
environment/LANG astring en_GB.UTF-8

bruce@ytc-m10:~$ sudo svcadm refresh svc:/system/environment

---8<

Checked /etc/default/init
---8<
CMASK=022
TZ=localtime
LANG=en_GB.UTF-8
---8<

And rebooted

Then I login and run locale

---8<
bruce@ytc-m10:~$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=en_US.UTF-8
---8<

Them damn yanks are back ! :-)

I have also added system/locale/extra
But I note that all my en_GB locales seem to be missing, I only have
iso_8859_1

Thoughts ? Google has retuned nothing

---8<
bruce@ytc-m10:~$ locale -a
C
POSIX
de_DE.ISO8859-1
de_DE.ISO8859-15
de_DE.UTF-8
en_US.ISO8859-1
en_US.ISO8859-15
en_US.ISO8859-15@euro
en_US.UTF-8
es_ES.ISO8859-1
es_ES.ISO8859-15
es_ES.UTF-8
fr_FR.ISO8859-1
fr_FR.ISO8859-15
fr_FR.UTF-8
iso_8859_1
it_IT.ISO8859-1
it_IT.ISO8859-15
it_IT.UTF-8
ja_JP.PCK
ja_JP.UTF-8
ja_JP.UTF-8@cldr
ja_JP.eucJP
ko_KR.EUC
ko_KR.EUC@dict
ko_KR.UTF-8
ko_KR.UTF-8@dict
pt_BR.ISO8859-1
pt_BR.UTF-8
zh_CN.EUC
zh_CN.EUC@pinyin
zh_CN.EUC@radical
zh_CN.EUC@stroke
zh_CN.GB18030
zh_CN.GB18030@pinyin
zh_CN.GB18030@radical
zh_CN.GB18030@stroke
zh_CN.GBK
zh_CN.GBK@pinyin
zh_CN.GBK@radical
zh_CN.GBK@stroke
zh_CN.UTF-8
zh_CN.UTF-8@pinyin
zh_CN.UTF-8@radical
zh_CN.UTF-8@stroke
zh_TW.BIG5
zh_TW.BIG5@pinyin
zh_TW.BIG5@radical
zh_TW.BIG5@stroke
zh_TW.BIG5@zhuyin
zh_TW.EUC
zh_TW.EUC@pinyin
zh_TW.EUC@radical
zh_TW.EUC@stroke
zh_TW.EUC@zhuyin
zh_TW.UTF-8
zh_TW.UTF-8@pinyin
zh_TW.UTF-8@radical
zh_TW.UTF-8@stroke
zh_TW.UTF-8@zhuyin
---8<

John D Groenveld

unread,
Apr 18, 2013, 10:02:24 AM4/18/13
to
Can you successfully change from en_US.UTF-8 to C?

I'm not able to reproduce following the manual with S11.1 SRU 5.5
<URL:http://docs.oracle.com/cd/E26502_01/html/E29214/glmen.html>

# locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=

# pkg change-facet facet.locale.en_GB=true

# locale -a | grep GB
en_GB.UTF-8

# svccfg -s svc:/system/environment:init setprop environment/LANG=en_GB.UTF-8

# svccfg -s svc:/system/environment:init listprop environment/LANG

# svcadm refresh svc:/system/environment

# init 6

# locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_ALL=

John
groe...@acm.org

YTC#1

unread,
Apr 18, 2013, 12:33:55 PM4/18/13
to
Not tried that, will do, it often falls into C when it can't work.

>
> I'm not able to reproduce following the manual with S11.1 SRU 5.5
> <URL:http://docs.oracle.com/cd/E26502_01/html/E29214/glmen.html>

I started on 5.5 in a VB and it failed, so I applied SRU 6 and it worked.

I repeated the process on the laptop and it didn't work. As I say, I
have the same issue with T4s on a customer site.

>
> # locale
> LANG=C
> LC_CTYPE="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_COLLATE="C"
> LC_MONETARY="C"
> LC_MESSAGES="C"
> LC_ALL=
>
> # pkg change-facet facet.locale.en_GB=true
>
> # locale -a | grep GB
> en_GB.UTF-8

Obviously this is where it goes wrong :-(

locale -a | grep GB
zh_CN.GB18030
zh_CN.GB18030@pinyin
zh_CN.GB18030@radical
zh_CN.GB18030@stroke
zh_CN.GBK
zh_CN.GBK@pinyin
zh_CN.GBK@radical
zh_CN.GBK@stroke


>

YTC#1

unread,
Apr 19, 2013, 4:27:24 AM4/19/13
to
On 04/18/13 03:02 PM, John D Groenveld wrote:
No, that fails


svccfg -s svc:/system/environment:init listprop environment/LANG
environment/LANG astring C

---8</etc/default/init
CMASK=022
TZ=localtime
LANG=C

---8<

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=






>

John D Groenveld

unread,
Apr 19, 2013, 6:59:00 AM4/19/13
to
In article <kkquvd$84k$1...@dont-email.me>, YTC#1 <b...@ytc1-spambin.co.uk> wrote:
>On 04/18/13 03:02 PM, John D Groenveld wrote:
>> Can you successfully change from en_US.UTF-8 to C?
>
>No, that fails
>
>
>svccfg -s svc:/system/environment:init listprop environment/LANG
>environment/LANG astring C
>
>---8</etc/default/init
>CMASK=022
>TZ=localtime
>LANG=C
>
>---8<
>
>LANG=en_US.UTF-8
>LC_CTYPE="en_US.UTF-8"
>LC_NUMERIC="en_US.UTF-8"
>LC_TIME="en_US.UTF-8"
>LC_COLLATE="en_US.UTF-8"
>LC_MONETARY="en_US.UTF-8"
>LC_MESSAGES="en_US.UTF-8"
>LC_ALL=

Assuming you rebooted, I think you're going to have to open
a service call with Oracle to track down this installation
specific bug.

I can change my locale using the documented procedure on my systems
and you can on your VBox guest installation.

Good luck and let us know what Oracle determines.
John
groe...@acm.org

YTC#1

unread,
Apr 19, 2013, 7:17:52 AM4/19/13
to
I appear to have a "fix"

I moved on from the suggested entries of

pkg change-facet 'facet.local.en_GB=True'

or

pkg change-facet 'facet.local.en_GB*=True'

And actuall set the full facet

pkg change-facet 'facet.local.en_GB.UTF-8=True'

rebooted and it is now set OK. :-)

Still not sure why it works on some systems and not others.

Next question, what does facet mean ? It has northing to do with the
edges of diamonds, who chose the word ? :-)

John D Groenveld

unread,
Apr 19, 2013, 8:56:02 AM4/19/13
to
In article <kkr8v1$6ad$1...@dont-email.me>, YTC#1 <b...@ytc1-spambin.co.uk> wrote:
>Next question, what does facet mean ? It has northing to do with the
>edges of diamonds, who chose the word ? :-)

<URL:http://docs.oracle.com/cd/E26502_01/html/E29214/glmen.html#glmim>
<URL:http://docs.oracle.com/cd/E26502_01/html/E28984/ghyer.html#gkkgg>
<URL:https://blogs.oracle.com/kupfer/entry/ips_facets_and_info_files>

John
groe...@acm.org

YTC#1

unread,
Apr 19, 2013, 9:06:12 AM4/19/13
to
Oh, I read all those, but what I was wondering was why the word "facet"
? Variant is a real word that makes sense. Facet seems to have been
something plucked out of the air.

There seems to be some references to C++ code having facets, but I am
curios as to why the word has been used and what they think it means :-)


Casper H.S. Dik

unread,
Apr 19, 2013, 9:27:17 AM4/19/13
to
YTC#1 <b...@ytc1-spambin.co.uk> writes:

>On 19/04/2013 13:56, John D Groenveld wrote:
>> In article <kkr8v1$6ad$1...@dont-email.me>, YTC#1 <b...@ytc1-spambin.co.uk> wrote:
>>> Next question, what does facet mean ? It has northing to do with the
>>> edges of diamonds, who chose the word ? :-)
>>
>> <URL:http://docs.oracle.com/cd/E26502_01/html/E29214/glmen.html#glmim>
>> <URL:http://docs.oracle.com/cd/E26502_01/html/E28984/ghyer.html#gkkgg>
>> <URL:https://blogs.oracle.com/kupfer/entry/ips_facets_and_info_files>

>Oh, I read all those, but what I was wondering was why the word "facet"
>? Variant is a real word that makes sense. Facet seems to have been
>something plucked out of the air.

variant is being used for a multiple, disjunct choices: architecture,
non-global or global zone. (either/or choices)

Different files can be installed in the same location depending on the
variant. (So you either get x86 /usr/bin/cat or the SPARC /usr/bin/cat
but clearly you can only install one /usr/bin/cat) and in some cases
files are not installed (binaries controlling the hardware or files
which may no sense in a non-global zone)

facet are properties which can be combined and just like a diamond
which has many facets and so does a Solaris 11 installation.

Facets control which files are being installed or not. E.g.,
manual pages are installed in with the packages where the binary
lives. By toggling the facet you get all the manual pages for
binaries installed.

>There seems to be some references to C++ code having facets, but I am
>curios as to why the word has been used and what they think it means :-)

Well, you know, it's all about the color of the bikeshed.

Casper

YTC#1

unread,
Apr 19, 2013, 10:01:45 AM4/19/13
to
On 19/04/2013 14:27, Casper H.S. Dik wrote:
> YTC#1 <b...@ytc1-spambin.co.uk> writes:
>
>> On 19/04/2013 13:56, John D Groenveld wrote:
>>> In article <kkr8v1$6ad$1...@dont-email.me>, YTC#1 <b...@ytc1-spambin.co.uk> wrote:
>>>> Next question, what does facet mean ? It has northing to do with the
>>>> edges of diamonds, who chose the word ? :-)
>>>
>>> <URL:http://docs.oracle.com/cd/E26502_01/html/E29214/glmen.html#glmim>
>>> <URL:http://docs.oracle.com/cd/E26502_01/html/E28984/ghyer.html#gkkgg>
>>> <URL:https://blogs.oracle.com/kupfer/entry/ips_facets_and_info_files>
>
>> Oh, I read all those, but what I was wondering was why the word "facet"
>> ? Variant is a real word that makes sense. Facet seems to have been
>> something plucked out of the air.
>
> variant is being used for a multiple, disjunct choices: architecture,
> non-global or global zone. (either/or choices)
>
> Different files can be installed in the same location depending on the
> variant. (So you either get x86 /usr/bin/cat or the SPARC /usr/bin/cat
> but clearly you can only install one /usr/bin/cat) and in some cases
> files are not installed (binaries controlling the hardware or files
> which may no sense in a non-global zone)
>
> facet are properties which can be combined and just like a diamond
> which has many facets and so does a Solaris 11 installation.

Someone put *too* much thought into that :-)

>
> Facets control which files are being installed or not. E.g.,
> manual pages are installed in with the packages where the binary
> lives. By toggling the facet you get all the manual pages for
> binaries installed.
>
>> There seems to be some references to C++ code having facets, but I am
>> curios as to why the word has been used and what they think it means :-)
>
> Well, you know, it's all about the color of the bikeshed.
>

Just so long as it is not grey ......


0 new messages