Commit dad80a1b by Jerry DeLisle

re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8")

2008-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/35863
	* io.c (gfc_match_open): Enable UTF-8 in checks.
	* simplify.c (gfc_simplify_selected_char_kind): Enable iso_10646.

From-SVN: r139146
parent f179cbca
2008-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/35863
* io.c (gfc_match_open): Enable UTF-8 in checks.
* simplify.c (gfc_simplify_selected_char_kind): Enable iso_10646.
2008-08-14 Janus Weil <janus@gcc.gnu.org> 2008-08-14 Janus Weil <janus@gcc.gnu.org>
PR fortran/36705 PR fortran/36705
......
...@@ -1706,8 +1706,7 @@ gfc_match_open (void) ...@@ -1706,8 +1706,7 @@ gfc_match_open (void)
if (open->encoding->expr_type == EXPR_CONSTANT) if (open->encoding->expr_type == EXPR_CONSTANT)
{ {
/* TODO: Implement UTF-8 here. */ static const char * encoding[] = { "DEFAULT", "UTF-8", NULL };
static const char * encoding[] = { "DEFAULT", NULL };
if (!compare_to_allowed_values ("ENCODING", encoding, NULL, NULL, if (!compare_to_allowed_values ("ENCODING", encoding, NULL, NULL,
open->encoding->value.character.string, open->encoding->value.character.string,
......
...@@ -3795,6 +3795,8 @@ gfc_simplify_selected_char_kind (gfc_expr *e) ...@@ -3795,6 +3795,8 @@ gfc_simplify_selected_char_kind (gfc_expr *e)
if (gfc_compare_with_Cstring (e, "ascii", false) == 0 if (gfc_compare_with_Cstring (e, "ascii", false) == 0
|| gfc_compare_with_Cstring (e, "default", false) == 0) || gfc_compare_with_Cstring (e, "default", false) == 0)
kind = 1; kind = 1;
else if (gfc_compare_with_Cstring (e, "iso_10646", false) == 0)
kind = 4;
else else
kind = -1; kind = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment