all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: <tomas@tuxteam.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: \201\236 appearing in emacs.desktop
Date: Sat, 08 Jul 2017 13:23:22 +0100	[thread overview]
Message-ID: <87h8ynm81x.fsf@skimble.plus.com> (raw)
In-Reply-To: <20170708111918.GF18691@tuxteam.de> (tomas@tuxteam.de's message of "Sat, 8 Jul 2017 13:19:18 +0200")

[-- Attachment #1: Type: text/plain, Size: 4231 bytes --]

<tomas@tuxteam.de> writes:

> On Sat, Jul 08, 2017 at 09:46:27AM +0100, Sharon Kimble wrote:
>> 
>> I've a problem that seems to have only developed this morning with my
>> 'emacs.desktop' file. It is being saved with '\201\236' appearing for
>> each entry which then stops it being reloaded on emacs restart. How can
>> I kill this problem please and get it back to working sanely again?
>
> My encoding crystal ball is pretty fuzzy on this one. At first blush
> it looks like a "double UTF-8 encoding" (an UTF-8 two-byte sequence which
> has been mistook for a single-byte-encoded-something and re-encoded by
> some well-meaning piece of software), but I can't actually identify it
> as such. Not sure I could help, but this could help to understand what's
> going on:
>
>   - (some of) the output of "describe-coding-system" aka "C-h C"
>   - your platform (Gnu/Linux, Mac, Windows, ??)
>
> (given your sig I assume a civilised platform, but better ask ;-)
>
Thanks for this Tomas.

I think that this is the answer to what you're saying -

--8<---------------cut here---------------start------------->8---
Coding system for saving this buffer:
  U -- utf-8-unix (alias: mule-utf-8-unix)

Default coding system (for new files):
  U -- utf-8 (alias: mule-utf-8)

Coding system for keyboard input:
  U -- utf-8-unix (alias: mule-utf-8-unix)

Coding system for terminal output:
  U -- utf-8-unix (alias: mule-utf-8-unix)

Coding system for inter-client cut and paste:
  U -- utf-8 (alias: mule-utf-8)

Defaults for subprocess I/O:
  decoding: U -- utf-8-unix (alias: mule-utf-8-unix)

  encoding: U -- utf-8-unix (alias: mule-utf-8-unix)


Priority order for recognizing coding systems when reading files:
  1. utf-8 (alias: mule-utf-8)
  2. iso-2022-7bit 
  3. iso-latin-1 (alias: iso-8859-1 latin-1)
  4. iso-2022-7bit-lock (alias: iso-2022-int-1)
  5. iso-2022-8bit-ss2 
  6. emacs-mule 
  7. raw-text 
  8. iso-2022-jp (alias: junet)
  9. in-is13194-devanagari (alias: devanagari)
  10. chinese-iso-8bit (alias: cn-gb-2312 euc-china euc-cn cn-gb gb2312)
  11. utf-8-auto 
  12. utf-8-with-signature 
  13. utf-16 
  14. utf-16be-with-signature (alias: utf-16-be)
  15. utf-16le-with-signature (alias: utf-16-le)
  16. utf-16be 
  17. utf-16le 
  18. japanese-shift-jis (alias: shift_jis sjis)
  19. chinese-big5 (alias: big5 cn-big5 cp950)
  20. w3m-euc-japan 
  21. undecided 

  Other coding systems cannot be distinguished automatically
  from these, and therefore cannot be recognized automatically
  with the present coding system priorities.
--8<---------------cut here---------------end--------------->8---

And my sig is correct, I am running these setups.

And thinking about it, these are all settings relating to utf-8 in my
config file -

--8<---------------cut here---------------start------------->8---
  (setq selection-coding-system 'utf-8)
  (prefer-coding-system 'utf-8)
  ;; Language Environment
  (set-language-environment 'utf-8)
##############
(setq org-export-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(set-charset-priority 'unicode)
(setq default-process-coding-system '(utf-8-unix . utf-8-unix))
###################
#+BEGIN_SRC emacs-lisp
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-keyboard-coding-system 'utf-8)
;; backwards compatibility as default-buffer-file-coding-system
;; is deprecated in 23.2.
(if (boundp 'buffer-file-coding-system)
    (setq-default buffer-file-coding-system 'utf-8)
  (setq default-buffer-file-coding-system 'utf-8))

;; Treat clipboard input as UTF-8 string first; compound text next, etc.
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
#+END_SRC
--8<---------------cut here---------------end--------------->8---

I've separated the separate c ode blocks using #'s. Is it possible that
all of those could be causing my problem? And if so, what can I chop out
and yet still retain utf-8 working?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk  
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.9

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2017-07-08 12:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-08  8:46 \201\236 appearing in emacs.desktop Sharon Kimble
2017-07-08 11:19 ` tomas
2017-07-08 12:23   ` Sharon Kimble [this message]
2017-07-08 15:20     ` tomas
2017-07-08 15:29       ` Eli Zaretskii
2017-07-08 17:02       ` Sharon Kimble
2017-07-09  9:56         ` tomas
2017-07-09 16:49           ` Sharon Kimble
2017-07-09 19:48             ` tomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h8ynm81x.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tomas@tuxteam.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.