help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

decode-coding-string and consing


From: Jesper Harder
Subject: decode-coding-string and consing
Date: Mon, 10 Feb 2003 17:47:53 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50

,----[ C-h f decode-coding-string RET ]
| decode-coding-string is a built-in function.
| (decode-coding-string STRING CODING-SYSTEM &optional NOCOPY)
| 
| Decode STRING which is encoded in CODING-SYSTEM, and return the result.
| Optional arg NOCOPY non-nil means it is OK to return STRING itself
| if the decoding operation is trivial.
`----

Under what conditions is the decoding operation "trivial"?

I was hoping that something like:

  (decode-coding-string "abc" 'us-ascii t) or
  (decode-coding-string "abc" 'latin-1 t)

wouldn't cons a new string; but unfortunaley it does.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]