Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
sort and localization
Giampiero Zanchi
5/6/2009 8:51:00 PM
Hi to all
I'm trying to solve projecteuler problem 022
(
http://projecteuler.net/index.php?section=problems...
) but with no
success. I suspect it may depend on localization of ruby sort (???). So
my question is: may ruby sort change due to the localization of the
machine it is running on?
--
Posted via
http://www.ruby-...
.
1 Answer
Gregory Brown
5/6/2009 10:17:00 PM
0
On Wed, May 6, 2009 at 4:50 PM, Giampiero Zanchi <cidza@tin.it> wrote:
> Hi to all
> I'm trying to solve projecteuler problem 022
> (
http://projecteuler.net/index.php?section=problems...
) but with no
> success. I suspect it may depend on localization of ruby sort (???). So
> my question is: may ruby sort change due to the localization of the
> machine it is running on?
Sort is done by ASCII sort order on Ruby 1.8. Not sure on Ruby 1.9,
but my guess is that it does not assume anything about 'alphabetical
order', but uses character codes instead. (Causing the same problem)
-greg
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
sort and localization
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password