unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* string comparison vs. char comparison
@ 2006-02-21 11:18 Sven.Hartrumpf
  2006-02-24 22:38 ` Kevin Ryde
  0 siblings, 1 reply; 2+ messages in thread
From: Sven.Hartrumpf @ 2006-02-21 11:18 UTC (permalink / raw)



[-- Attachment #1.1: Type: Text/Plain, Size: 346 bytes --]

R5RS:
"string<? is the lexicographic ordering on strings induced
by the ordering char<? on characters."
(Guile reference 5.5.5.7 conforms to this statement.)

Standard guile 1.8.0 differs from this specification
for Latin-1 characters:
> guile180 -q
guile> (string<? "s" "ß")
#f
guile> (char<? #\s #\ß)
#t
guile> 

Greetings
Sven

[-- Attachment #1.2: Type: application/pgp-signature, Size: 191 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: string comparison vs. char comparison
  2006-02-21 11:18 string comparison vs. char comparison Sven.Hartrumpf
@ 2006-02-24 22:38 ` Kevin Ryde
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Ryde @ 2006-02-24 22:38 UTC (permalink / raw)
  Cc: bug-guile

Sven.Hartrumpf@FernUni-Hagen.de writes:
>
> guile> (string<? "s" "ß")
> #f
> guile> (char<? #\s #\ß)
> #t

Ah dear.  Thanks.  The string funcs are signed, the char funcs are
unsigned.  I think they used to be both unsigned.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-24 22:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21 11:18 string comparison vs. char comparison Sven.Hartrumpf
2006-02-24 22:38 ` Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).