unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alexis <flexibeast@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Zhang Songyu <zsy9822@hotmail.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: "args-out-of-range" error when using data from external process on Windows
Date: Fri, 19 Apr 2024 13:16:58 +1000	[thread overview]
Message-ID: <87h6fyoxcl.fsf@gmail.com> (raw)
In-Reply-To: <86il0ff4qe.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Apr 2024 11:35:21 +0300")


Hi again Eli,

i've taken your comments back to the user:

  https://github.com/flexibeast/ebuku/issues/32#issuecomment-2063682096

And they've responded with two comments:

  https://github.com/flexibeast/ebuku/issues/32#issuecomment-2064663151

  https://github.com/flexibeast/ebuku/issues/32#issuecomment-2064663151

in which they said:

> I set the LC_ALL and LANG variable by editing Windows's 
> environment variable.
> Because Emacs don't read these, I have removed the variables.

and noted that they were successfully able to add and search for 
the CRAB emoji by using buku directly on the command line:

> The PowerShell display the CRAB emoji fine. ( I use Windows 
> Terminal )

but also that:

> I copied the output into scratch buffer, it's not displaying. 

More generally, they've noted:

> But right now my language environment will be "Chinese-GBK".  My 
> files will be encoded as GBK, which is not I desired.  I think 
> for some backward compatibility concern, MS use GBK encofing for 
> Chinese.  Can I somehow set the Emacs to use UTF-8 for new file 
> encodings?

And in their second comment, wrote:

> Hi, I found the encoding setting from Emacs China website.  I 
> added these lines in the early-init.el file 
> 
> (set-charset-priority 'unicode) (prefer-coding-system 'utf-8) 
> (setq system-time-locale "C") 
> 
> Right now, the new file would be saved with UTF-8 But the args 
> out of range problems still persistes.

i have subsequently responded:

  https://github.com/flexibeast/ebuku/issues/32#issuecomment-2065617662

in which i wrote: 
 
> setting those variables won't influence the encoding of the data 
> that Ebuku has to process. 
> 
> This is a very complex issue, so we need to control the various 
> factors involved.

> ...
>
> i understand that you don't want to use the GBK environment in 
> general

and explained starting Emacs with `-Q`, and manually loading 
Ebuku, to test Ebuku.

However, given that:

* i don't have access to a Win machine;
* i've not actively used Win for more than a decade;
* i don't have any experience with Win at a dev level;
* i've never used Win in a non-English environment, or Emacs in a 
  non-UTF8 environment;

i'm feeling overwhelmed by the various factors here, and am 
struggling to work out the right questions to ask the user, and 
how to appropriately
work with the answers. So i also wrote: 
 
> i'm think i'm going to have to ask you to interact directly with 
> the Eli on the mailing list about this, as i'm finding it 
> difficult to be the messenger going back and forth, and it will 
> be much quicker if Eli can ask you questions directly, which you 
> can respond to directly. Hopefully that process will make it 
> clear what would need to be done by Ebuku in order to fix the 
> problem, in a non-GBK environment.

Thus, i've cc'd the user on this email, so that, if you're willing 
and able, you can engage with them directly (perhaps by asking 
them to do specific tests that don't involve Ebuku, but which will 
show what Ebuku needs to handle).


Alexis.



  parent reply	other threads:[~2024-04-19  3:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18  5:39 "args-out-of-range" error when using data from external process on Windows Alexis
2024-04-18  6:01 ` Eli Zaretskii
2024-04-18  7:07   ` Alexis
2024-04-18  8:35     ` Eli Zaretskii
2024-04-18 11:20       ` Alexis
2024-04-19  3:16       ` Alexis [this message]
2024-04-19  7:29         ` Eli Zaretskii
2024-04-21  0:57           ` Alexis
2024-04-18  6:05 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2024-04-18  6:11 Alexis
2024-04-18  7:08 ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87h6fyoxcl.fsf@gmail.com \
    --to=flexibeast@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=zsy9822@hotmail.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 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).