Discussion List Archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ddlm-group] [THREAD 4] UTF8

Dear Nick,

   Fortran dates from the days of "unit record" equipment, fixed length
records on magnetic tape, and variable length records on paper tape.
Part of the Fortran language spec is an I/O system for those days
that pads incoming character data on read an arbitrary number of
blanks on every "formatted" read, and which provides _no_ way to
detect the original line termination.

   The language is also remarkably clumsy in handling variable length
strings, preferring to pad, again with blanks, on every string assignment.

   It make fore great fun in programming for it.

   I would advise you to stick to C/C++/java, etc.

   Regards,
     Herbert

=====================================================
  Herbert J. Bernstein, Professor of Computer Science
    Dowling College, Kramer Science Center, KSC 121
         Idle Hour Blvd, Oakdale, NY, 11769

                  +1-631-244-3035
                  yaya@dowling.edu
=====================================================

On Tue, 13 Oct 2009, Nick Spadaccini wrote:

>
>
>
> On 13/10/09 10:46 PM, "Herbert J. Bernstein" <yaya@bernstein-plus-sons.com>
> wrote:
>
>> The simple cure (just use C-I/O) is not acceptable to certain major
>> crytallographic application developers.  On that, too, there are fixes
>> in the wings, but not solid yet.
>>
>> For now, I think we need to include trailing blank stripping in the spec.
>
> C-I/O-*nix person here doesn't quite understand what the issue is here. It
> has been a long time since I programmed in Fortran. Can you clarify please.
>
> I don't understand why issues with padding need to be dealt with in a
> specification.
>
> cheers
>
> Nick
>
> --------------------------------
> Associate Professor N. Spadaccini, PhD
> School of Computer Science & Software Engineering
>
> The University of Western Australia    t: +61 (0)8 6488 3452
> 35 Stirling Highway                    f: +61 (0)8 6488 1089
> CRAWLEY, Perth,  WA  6009 AUSTRALIA   w3: www.csse.uwa.edu.au/~nick
> MBDP  M002
>
> CRICOS Provider Code: 00126G
>
> e: Nick.Spadaccini@uwa.edu.au
>
>
>
>
>
> _______________________________________________
> ddlm-group mailing list
> ddlm-group@iucr.org
> http://scripts.iucr.org/mailman/listinfo/ddlm-group
>
_______________________________________________
ddlm-group mailing list
ddlm-group@iucr.org
http://scripts.iucr.org/mailman/listinfo/ddlm-group

Reply to: [list | sender only]
International Union of Crystallography

Scientific Union Member of the International Council for Science (admitted 1947). Member of CODATA, the ICSU Committee on Data. Member of ICSTI, the International Council for Scientific and Technical Information. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

ICSU Scientific Freedom Policy

The IUCr observes the basic policy of non-discrimination and affirms the right and freedom of scientists to associate in international scientific activity without regard to such factors as ethnic origin, religion, citizenship, language, political stance, gender, sex or age, in accordance with the Statutes of the International Council for Science.