fparser icon indicating copy to clipboard operation
fparser copied to clipboard

get_reader() utility fails if string contains non-ascii characters

Open arporter opened this issue 5 years ago • 1 comments

The get_reader() utility in fparser.api attempts to decide whether the string it has been passed is actually a filename rather than Fortran code. Unfortunately it then falls over (in Python2) if the supplied string has non-ASCII characters.

arporter avatar Jan 02 '20 16:01 arporter

The workaround is to create a FortranStringReader directly rather than use the get_reader utility.

arporter avatar Jan 02 '20 16:01 arporter