unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* interesting encryption/encoding allout problem
@ 2006-11-11  5:35 Ken Manheimer
  2006-11-11 22:42 ` Kim F. Storm
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Manheimer @ 2006-11-11  5:35 UTC (permalink / raw)


i'm struggling with an interesting coding-system problem presented by
allout's topic encryption feature, and wondering whether anyone has
suggestions.

the problem occurs when non-ascii text, which requires an alternative
coding system, exists only within a topic or topics that are encrypted.
allout auto-encrypts unencrypted topics, and i can make allout do
select-safe-coding-system to promote the proper coding system setting
during encryption.

the problem is that encryption of the text removes the need for the
alternate coding system.  when the file is next visited, all the non-ascii
characters are encrypted, which is coding-system agnostic.  the default
coding system is used, and (unless the default happens to be tailored for
it) decryption of the topics will deliver the non-ascii text into the wrong
coding system.

perhaps the thing i'm missing is the right way to save the text so the
alternate coding system is recovered despite the absence of any text which
requires it.  is that possible?  might i need to have allout set some local
file variable to preserve the coding-system?

i think the same problem occurs for whole-buffer encryption, when some of
the encrypted text is non-ascii.
-- 
ken
ken.manheimer@gmail.com
http://myriadicity.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-11 23:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-11  5:35 interesting encryption/encoding allout problem Ken Manheimer
2006-11-11 22:42 ` Kim F. Storm
2006-11-11 23:56   ` Ken Manheimer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).