From: Lars Ingebrigtsen <larsi@gnus.org>
To: 56344@debbugs.gnu.org
Subject: bug#56344: 28.1; cannot copy-paste string with utf-8 letters (i.e. ²): "Non-ASCII string must be encoded in advance"
Date: Thu, 22 Sep 2022 12:42:27 +0200 [thread overview]
Message-ID: <8735cj8zcc.fsf@gnus.org> (raw)
In-Reply-To: <87edw4s8k9.fsf@web.de> (Arne Babenhauserheide's message of "Wed, 21 Sep 2022 23:44:27 +0200")
"Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:
>> I have not yet found what in my config could be causing it, but I am
>> still searching.
>
> I finally found the reason for the problem:
> In org-custom-link-completion.el I had defined string-replace as:
>
> (defun string-replace (this withthat in)
> "replace THIS with WITHTHAT' in the string IN"
> (with-temp-buffer
> (insert in)
> (goto-char (point-min))
> (replace-string this withthat)
> (buffer-substring (point-min) (point-max))))
>
> But this overwrote an internal function.
>
> After removing this (and its usages in my code replaced by plain
> replace-regexp-in-string) my problems with encoding are gone.
>
> So this can now be closed as "user broke emacs with config" …
Ah, I see. :-)
> Thank you for your patience!
No problem.
prev parent reply other threads:[~2022-09-22 10:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-01 21:53 bug#56344: 28.1; cannot copy-paste string with utf-8 letters (i.e. ²): "Non-ASCII string must be encoded in advance" Dr. Arne Babenhauserheide
2022-07-02 6:03 ` Eli Zaretskii
2022-07-02 8:07 ` Dr. Arne Babenhauserheide
2022-07-03 17:59 ` Eli Zaretskii
2022-08-02 11:00 ` Lars Ingebrigtsen
[not found] ` <87bkt224s0.fsf@web.de>
[not found] ` <87edw4s8k9.fsf@web.de>
2022-09-22 10:42 ` Lars Ingebrigtsen [this message]
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=8735cj8zcc.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=56344@debbugs.gnu.org \
/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.