From: Eli Zaretskii <eliz@gnu.org>
To: Visuwesh <visuweshm@gmail.com>
Cc: tsdh@gnu.org, 73846@debbugs.gnu.org
Subject: bug#73846: [PATCH] Make djvused emit UTF-8 encoded text
Date: Thu, 17 Oct 2024 08:26:27 +0300 [thread overview]
Message-ID: <86frovpaf0.fsf@gnu.org> (raw)
In-Reply-To: <87y12n1i6p.fsf@gmail.com> (message from Visuwesh on Thu, 17 Oct 2024 09:42:30 +0530)
> Cc: "Tassilo Horn" <tsdh@gnu.org>
> From: Visuwesh <visuweshm@gmail.com>
> Date: Thu, 17 Oct 2024 09:42:30 +0530
>
> This is a small patch to make djvused emit UTF-8 encoded text. In the
> djvu test file that I sent you, outline in the appendix have non-ASCII
> characters which are written as octal escapes. Rather than unescaping
> them on Emacs side, we can request djvused to use UTF-8 directly which
> this patch does. The attached patch does just that.
If you force djvused to emit UTF-8 encoded text, you need to bind
coding-system-for-read to 'utf-8, to make sure Emacs decodes that
correctly. I'm guessing your locale uses UTF-8 by default, which is
why it worked for you.
Please also add a comment there explaining what the -u switch does and
why we use it there.
Thanks.
next prev parent reply other threads:[~2024-10-17 5:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-17 4:12 bug#73846: [PATCH] Make djvused emit UTF-8 encoded text Visuwesh
2024-10-17 5:26 ` Eli Zaretskii [this message]
2024-10-17 8:31 ` Visuwesh
2024-10-18 6:07 ` Tassilo Horn
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=86frovpaf0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=73846@debbugs.gnu.org \
--cc=tsdh@gnu.org \
--cc=visuweshm@gmail.com \
/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.