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

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

Re: What does the coding system nil mean?


From: Eli Zaretskii
Subject: Re: What does the coding system nil mean?
Date: 25 Jan 2004 08:10:58 +0200

> Newsgroups: gnu.emacs.help
> From: Jesper Harder <harder@myrealbox.com>
> Date: Sat, 24 Jan 2004 23:13:38 +0100
> 
> So, can anyone explain what a nil coding system means?

It means, quite naturally, that no code-conversion should take place.
That is, the original text or string are left unaltered.

Try it:

  M-: (encode-coding-string "SOME STRING" nil) 
      => "SOME STRING"

(include non-ASCII characters in the string to convince yourself they
are not encoded).

I agree that this should be in the docs somewhere, e.g. in the docs of
the en/decoding primitives such as encode-coding-region and
decode-coding-string.  So a documentation bug report is probably in
order.





reply via email to

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