Re: Upcoming gfortran 15 will contain unsigned numbers

Liste des GroupesRevenir à cl fortran 
Sujet : Re: Upcoming gfortran 15 will contain unsigned numbers
De : lynnmcguire5 (at) *nospam* gmail.com (Lynn McGuire)
Groupes : comp.lang.fortran
Date : 15. Oct 2024, 22:51:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vemo54$1s0m9$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 10/15/2024 3:46 PM, Steven G. Kargl wrote:
On Tue, 15 Oct 2024 15:26:42 -0500, Lynn McGuire wrote:
 
>
Any plans to support UTF16 or UTF8 in gfortran ?
>
 gfortran has supported UTF-8 for long time now.  Here's
an example from the manual.
    program character_kind
     use iso_fortran_env
     implicit none
     integer, parameter :: ascii = selected_char_kind ("ascii")
     integer, parameter :: ucs4  = selected_char_kind ('ISO_10646')
      character(kind=ascii, len=26) :: alphabet
     character(kind=ucs4,  len=30) :: hello_world
      alphabet = ascii_"abcdefghijklmnopqrstuvwxyz"
     hello_world = ucs4_'Hello World and Ni Hao -- ' &
   // char (int (z'4F60'), ucs4)     &
   // char (int (z'597D'), ucs4)
      write (*,*) alphabet
      open (output_unit, encoding='UTF-8')
     write (*,*) trim (hello_world)
   end program character_kind
Thanks !
Lynn

Date Sujet#  Auteur
13 Oct 24 * Upcoming gfortran 15 will contain unsigned numbers20Thomas Koenig
13 Oct 24 +- Re: Upcoming gfortran 15 will contain unsigned numbers1Gary Scott
13 Oct 24 +- Re: Upcoming gfortran 15 will contain unsigned numbers1Lawrence D'Oliveiro
15 Oct 24 `* Re: Upcoming gfortran 15 will contain unsigned numbers17Lynn McGuire
15 Oct 24  +* Re: Upcoming gfortran 15 will contain unsigned numbers2Steven G. Kargl
15 Oct 24  i`- Re: Upcoming gfortran 15 will contain unsigned numbers1Lynn McGuire
16 Oct 24  `* Re: Upcoming gfortran 15 will contain unsigned numbers14Lawrence D'Oliveiro
9 Nov 24   `* Re: Upcoming gfortran 15 will contain unsigned numbers13Lynn McGuire
9 Nov 24    +* Re: Upcoming gfortran 15 will contain unsigned numbers2Lawrence D'Oliveiro
9 Nov 24    i`- Re: Upcoming gfortran 15 will contain unsigned numbers1Lynn McGuire
9 Nov 24    `* Re: Upcoming gfortran 15 will contain unsigned numbers10Thomas Koenig
23 Nov 24     `* Re: Upcoming gfortran 15 will contain unsigned numbers9Lynn McGuire
23 Nov 24      +* Re: Upcoming gfortran 15 will contain unsigned numbers2Lawrence D'Oliveiro
23 Nov 24      i`- Re: Upcoming gfortran 15 will contain unsigned numbers1Lynn McGuire
23 Nov 24      +- Re: Upcoming gfortran 15 will contain unsigned numbers1Thomas Koenig
23 Nov 24      `* Re: Upcoming gfortran 15 will contain unsigned numbers5Wolfgang Agnes
24 Nov 24       `* Re: Upcoming gfortran 15 will contain unsigned numbers4Lawrence D'Oliveiro
25 Nov 24        `* OT: unicode (Was: Re: Upcoming gfortran 15 will contain unsigned numbers)3Wolfgang Agnes
25 Nov 24         +- Re: OT: unicode (Was: Re: Upcoming gfortran 15 will contain unsigned numbers)1Lynn McGuire
26 Nov 24         `- Re: OT: unicode (Was: Re: Upcoming gfortran 15 will contain unsigned numbers)1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal