Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unicode characters (Cyrillic) with Intel Fortran

Does anyone have any experience with using Unicode in Fortran? How does one pass Cyrillic characters, and open files with Cyrillic characters in their names?

Details:

I have a Fortran executable that needs to read parameters from a control file. Some of these parameters are in Cyrillic (e.g., file paths).

The executable calls a C++ DLL. Some of the parameters to these calls need to be in Cyrillic.

I am using the latest Intel Fortran.

I'm looking for any source of information, or small examples as to how to do so.

like image 766
Stu Avatar asked Oct 25 '22 00:10

Stu


1 Answers

As already indicated, Fortran 2003 has a Unicode character type. Exactly what features will work with that character type ... I don't know ... filenames? I don't see mention of Unicode in the release notes for the Intel Fortran compiler. In 2006 Intel indicated that this feature was a low priority (http://software.intel.com/en-us/forums/showthread.php?t=51751). You might ask on the Intel forums ... probably an Intel representative will answer about the capabilities of the Intel compiler. If the Intel Fortran compiler can't handle Unicode yet, you might need to do this I/O in another language.

like image 172
M. S. B. Avatar answered Oct 31 '22 08:10

M. S. B.