Ar an dara lá is fiche de mí Iúil, scríobh Stephen J. Turnbull:
Aidan Kehoe writes:
> I’m not sure what you mean by that. With this patch, for every string
> X, (encode-coding-string (decode-coding-string X 'utf-8) 'utf-8) is
> identical to X, independent of whether X is valid UTF-8.
What I want documented is what happens in the case of
(encode-coding-string (snafu (decode-coding-string X 'utf-8) 'utf-8))
for arbitrary #'snafu that returns a string. Eg,
(defun snafu (dx)
"Delete every other character from DX."
(concat (let ((dxl (append dx nil)))
(while (cdr dxl)
(setcdr dxl (cddr dxl))
(setq dxl (cdr dxl)))))))
You know that our internal string encoding is not exposed to Lisp, except
via CCL, right? I don’t object to your asking to document it, but I wonder
what provokes the question.
On the quay of the little Black Sea port, where the rescued pair came once
more into contact with civilization, Dobrinton was bitten by a dog which was
assumed to be mad, though it may only have been indiscriminating. (Saki)
XEmacs-Patches mailing list