comp.lang.ada
 help / color / mirror / Atom feed
* RE: Latin_1 and portability
@ 2003-12-13 15:24 amado.alves
  2003-12-14  2:46 ` Björn Persson
  0 siblings, 1 reply; 21+ messages in thread
From: amado.alves @ 2003-12-13 15:24 UTC (permalink / raw)
  To: comp.lang.ada

/*
> ISO 9660 is for optical media - CDs and DVDs.
I was thinking CDs and said magnetic. Old brain. At least I didn't say vinyl :-)
*/

>> Of course AdaOS will do the right thing :-)

>Now I'm curious. What is the right thing to do?

Hmm... good point :-) 24-bit Unicode everywhere inside the system, and absolutely flawless converters to/from all formats?




^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: Latin_1 and portability
@ 2003-12-13 13:35 amado.alves
  2003-12-13 14:54 ` Björn Persson
  2003-12-13 22:21 ` Larry Kilgallen
  0 siblings, 2 replies; 21+ messages in thread
From: amado.alves @ 2003-12-13 13:35 UTC (permalink / raw)
  To: comp.lang.ada

<<...ISO-9660 includes an indicator
regarding which of the 4 major EOL indicators>>
 
I bet all except NEL: as I said, fascinating stuff :-)
 
<<...I have been told that some TCP/IP implementations
do conversion on the fly.>>
 
I don't think I have ever met one implementation of TCP/IP or magnetic media types (that's ISO-9660 right?) that actually convert. Maybe the standards have places for it as you said (I believe you for ISO). But it is not effective in the systems I'm used to (Windows, Linux). Not to mention the remaining characters outside ASCII. It's a mess. Of course AdaOS will do the right thing :-)
 



^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: Latin_1 and portability
@ 2003-12-13  2:27 amado.alves
  2003-12-13 13:09 ` Larry Kilgallen
  0 siblings, 1 reply; 21+ messages in thread
From: amado.alves @ 2003-12-13  2:27 UTC (permalink / raw)
  To: comp.lang.ada

<<
Are you saying that some implementations of TEXT_IO.GET_LINE do not
handle OS terminals properly ?

I thought GET_LINE was the way around OS-dependencies in this area.
>>
 
I find this fascinating. You can have an X-conventioned text file in a Y system, where X and Y are operating systems (with distinct end of line conventions). If you compile your Ada program to the Y target, it will not read the X file properly. Amongs other unwarranted effects. Thit is why I adopt an 1-N conversion approach. Say 8-bit characters. I use Latin_1.NEL for end of line in the main application (the "1" side), and provide (simple) converters to/from the N conventions.



^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: Latin_1 and portability
@ 2003-12-10 13:16 amado.alves
  0 siblings, 0 replies; 21+ messages in thread
From: amado.alves @ 2003-12-10 13:16 UTC (permalink / raw)
  To: comp.lang.ada

<<...on UNIX or Linux Suse Character'Pos (E) = 10
on Windows 2000 Character'Pos (E) = 13

How can I manage to work properly ...>>

Depends on the application. For text processing applications that span several operating systems, I often use Latin_1.NEL for newline in the main application and provide 1-N conversors.




^ permalink raw reply	[flat|nested] 21+ messages in thread
* Latin_1 and portability
@ 2003-12-10 12:15 Xavier Serrand
  2003-12-10 13:45 ` Georg Bauhaus
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Xavier Serrand @ 2003-12-10 12:15 UTC (permalink / raw)


Hello,

For return (or enter)

when using Text_Io.Get_Immediate (E);

on UNIX or Linux Suse Character'Pos (E) = 10
on Windows 2000 Character'Pos (E) = 13

How can I manage to work properly ...
Do i have to parametrize my application reading characters from a file
... and looking at the values recognized by the functions ... Is there
anothers means ?

Thanks for Ada's Gurus who can help me a very little bit .....

xavier SERRAND



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

end of thread, other threads:[~2003-12-14  6:12 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-13 15:24 Latin_1 and portability amado.alves
2003-12-14  2:46 ` Björn Persson
2003-12-14  5:04   ` Jeff C,
2003-12-14  6:12     ` Nick Roberts
  -- strict thread matches above, loose matches on Subject: below --
2003-12-13 13:35 amado.alves
2003-12-13 14:54 ` Björn Persson
2003-12-13 22:17   ` Larry Kilgallen
2003-12-14  1:55     ` Björn Persson
2003-12-13 22:21 ` Larry Kilgallen
2003-12-13  2:27 amado.alves
2003-12-13 13:09 ` Larry Kilgallen
2003-12-10 13:16 amado.alves
2003-12-10 12:15 Xavier Serrand
2003-12-10 13:45 ` Georg Bauhaus
2003-12-10 22:00   ` Xavier Serrand
2003-12-10 18:33 ` Jeffrey Carter
2003-12-10 21:34 ` Pascal Obry
2003-12-10 21:52   ` Ludovic Brenta
2003-12-11  3:40 ` Robert I. Eachus
2003-12-12 23:41   ` Larry Kilgallen
2003-12-13 14:48     ` Robert I. Eachus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox