On Sep 28, 2011, at 6:34 PM, Apostolos Syropoulos wrote:

>> Interesting… I'm not sure why the bootadm stuff failed given what you've 
>> indicated.
> 
> I dare to say this is a libc problem. I feel that it was not made
> locale aware since most, if not all users, are English speaking.

Um.. I call bullshit.  I spent a *lot* of time making it locale aware, and did 
extensive testing of that code.  I may not have tested the ability to *collate 
Greek* specifically, but I did extensive collation tests in other languages.  
(Greek collation rules are fairly trivial, at least compared to say French, so 
I'm surprised you have problems here.)

A number of my engineers use this with Russian on a frequent basis, and I know 
at least a few people are using Chinese locales.

> Otherwise, one cannot explain why when in maintenance mode I enter
> 
> # export LC_ALL=C
> 
> bootadm work just fine. But when I log out from maintenance mode, the
> error reappears. I think the system will boot once I will change the
> locale to C. Of course this will be a completely useless system for
> me.


I just tested this myself, and I am indeed seeing the crash you indicated … 
this is very strange.. it only happens in bootadm update-archive.  Other greek 
commands work fine.   Admittedly I don't have a Greek data set to work with, so 
testing collation, etc. would be easier there.  But at least dumping data 
through sort in this locale seems ok.

That said, bootadm may itself not be locale safe… I wonder why it is using a 
locale sensitive collation in the code for bootadm update-archive -- that makes 
no sense to me whatsoever.  (The panic is in collation code, not somewhere 
else.)  This crash happens even when bootadm has no data to present on output, 
so why is it sorting anything at all?  Or at least, why is it using a locale 
sensitive sort?

I do know that there were some bugs in the code for localedef, which may have 
generated malformed databases, I suppose.  Bruce Yao recently discovered those, 
but the fixes have not yet integrated.  It will be interesting to test this 
myself.

> 
>  
>> Perhaps I need to try it, but unfortunately I don't know Greek.
>> 
> 
> Well knowing Greek is not important as all messages are in English.

Yes, I see that now.

  - Garrett

> 
> 
>  
> A.S.
> 
> 
> 
> ----------------------
> Apostolos Syropoulos
> Xanthi, Greece
> 
> 
> 
> -------------------------------------------
> illumos-discuss
> Archives: https://www.listbox.com/member/archive/182180/=now
> RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175539-f0d50499
> Modify Your Subscription: https://www.listbox.com/member/?&;
> Powered by Listbox: http://www.listbox.com



-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to