Support for internationalization in 2015 Beta

Support for internationalization in 2015 Beta

Do I understand it correctly: the 2015 beta release contains the complete Fortran 2003 standard? Does this include support for internationalization i.e.

selected_char_kind("ISO_10646')

ChrisG

 

8 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

No - that's not required to support F2003. We support that syntax, but no alternate character kinds.

Steve - Intel Developer Support

It would be very helpful for many of us to include support for the ISO 10646 UCS-4 character kind.  Several other Fortran compilers, including the GNU GFortran compiler, support this character kind.  We live in a culturally diverse world and the availability of non-ASCII character set is very useful in many programming situations.

We're aware of that and it's on our list. But it's a major effort, with implications throughout the compiler and run-time library, and development resources are finite.

Steve - Intel Developer Support

Thanks Steve: I had mistakenly thought that Unicode was part of the 2003 standard, but a closer reading of Metcalf, Reid & Cohen makes it clear that this is not the case, and I can see that it is (a) a lot of work and (b) low on the list of priorities.

It raises another question however concerning internationalization and localization:

I have a Fortran program that is part of larger project that is written in C, C++ etc. My program uses progress meters and I want to localize the text in these. I can use VS to create a localizable resource.resx file (or an .rc file and convert it to an .resx file) into which I load the strings for the headers of the progress meters. Is there any way I can access the .resx file in Fortran? Is there any literature on this topic anyone knows of? Indeed, is there any way of determining the local language on the host computer?

ChrisG

You can use the NLS functions https://software.intel.com/sites/products/documentation/doclib/stdxe/201... or talk direct to the windows sdk to determine attributes of the locale of the computer.

I

Citazione:

Chris G. ha scritto:

...

It raises another question however concerning internationalization and localization:

I have a Fortran program that is part of larger project that is written in C, C++ etc. My program uses progress meters and I want to localize the text in these. I can use VS to create a localizable resource.resx file (or an .rc file and convert it to an .resx file) into which I load the strings for the headers of the progress meters. Is there any way I can access the .resx file in Fortran? Is there any literature on this topic anyone knows of? Indeed, is there any way of determining the local language on the host computer?

ChrisG

An approach I use is to have callback from Fortran to C, C++, (C#, Visual Basic.NET), etc. and do all the internalized/localized text processing in these environments instead of Fortran.  With "Modern Fortran" and C interoperability, it is much cleaner now to exchange data in mixed language enivironments.  I find this approach much easier to develop, support, and maintain.  Something you may wish to consider.

Thanks everyone for your useful comments. I will follow FortranFan's ideas.

ChrisG

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi