﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	difficulty
1374	`display' issue with UTF-8	Mario Domenech Goulart		"I received a bug report against awful ([[https://github.com/mario-goulart/awful/issues/5]]), but the issue seems to be related to CHICKEN.

Here's a smaller test case to illustrate the problem:

{{{
$ cat test.scm

(cond-expand
  (chicken (use utf8))
  (else #f))

(let ((chars (string->list ""出"")))
  (display ""<html><head><meta charset=\""utf-8\""/></head>"")
  (display chars)
  (display ""<br>"")
  (display ""("")
  (display (car chars))
  (display "")"")
  (display ""</html>""))
}}}

To see the problem:

{{{
$ csi -s test.scm > chicken-out.html
$ firefox chicken-out.html
}}}

It seems that {{{display}}} is messing up at printing the list containing the UTF-8 char.

Gauche does the right thing:

{{{
$ gosh test.scm > gauche-out.html
$ firefox gauche-out.html
}}}

The two output files differ, of course:

{{{
$ cmp gauche-out.html chicken-out.html
gauche-out.html chicken-out.html differ: byte 44, line 1
}}}

"	defect	closed	major	5.4	core libraries	4.12.0	wontfix	display, ##sys#print, utf8		hard
