summaryrefslogtreecommitdiffstats
path: root/libgfortran/intrinsics/selected_char_kind.c
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-16 03:38:31 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-16 03:38:31 +0000
commitd5ca01c331521c6091bfb7353e7e07ab4963b8ee (patch)
tree659ac99319524f53dd916bbef37cd895b6a5cadb /libgfortran/intrinsics/selected_char_kind.c
parenta409891fe20f3697194bf6db195de6e1cd201259 (diff)
downloadppe42-gcc-d5ca01c331521c6091bfb7353e7e07ab4963b8ee.tar.gz
ppe42-gcc-d5ca01c331521c6091bfb7353e7e07ab4963b8ee.zip
2008-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/35863 * intrinsics/selected_char_kind.c: Enable iso_10646. * io/read.c (typedef uchar): New type. (read_utf8): New function to read a single UTF-8 encoded character. (read_utf8_char1): New function to read UTF-8 into a KIND=1 string. (read_default_char1): New functio to read default into KIND=1 string. (read_utf8_char4): New function to read UTF-8 into a KIND=4 string. (read_default_char4): New function to read UTF-8 into a KIND=4 string. (read_a): Modify to use the new functions. (read_a_char4): Modify to use the new functions. * io/write.c (error.h): Add include. (typedef uchar): New type. (write_default_char4): New function to default write KIND=4 string. (write_utf8_char4): New function to UTF-8 write KIND=4 string. (write_a_char4): Modify to use new functions. (write_character): Modify to use new functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139147 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/intrinsics/selected_char_kind.c')
-rw-r--r--libgfortran/intrinsics/selected_char_kind.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgfortran/intrinsics/selected_char_kind.c b/libgfortran/intrinsics/selected_char_kind.c
index c10d5b2efaf..686636198b2 100644
--- a/libgfortran/intrinsics/selected_char_kind.c
+++ b/libgfortran/intrinsics/selected_char_kind.c
@@ -44,6 +44,8 @@ selected_char_kind (gfc_charlen_type name_len, char *name)
if ((len == 5 && strncasecmp (name, "ascii", 5) == 0)
|| (len == 7 && strncasecmp (name, "default", 7) == 0))
return 1;
+ else if (len == 9 && strncasecmp (name, "iso_10646", 9) == 0)
+ return 1;
else
return -1;
}
OpenPOWER on IntegriCloud