all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: master e4e1e268c8e 2/2: Set a default locale on Android
Date: Fri, 08 Dec 2023 18:30:51 +0800	[thread overview]
Message-ID: <875y19m1es.fsf@yahoo.com> (raw)
In-Reply-To: <838r6516jc.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Dec 2023 09:45:43 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

> If that encoding is consistent with the current system locale, Emacs
> is expected to be able to decode it.

The system's locale is _always_ UTF-8.

> Again, if the current locale is not UTF-8, Emacs should be able to
> decode text even in the absence of any cookies.  When the file's
> contents could be decoded with more than a single coding-system, Emacs
> uses the locale's defaults to break the tie.

We are mis-communicating: there are no non-UTF-8 locales under Android,
which is a guarantee from the Android developers.  There are different
languages, but they are uniformly encoded as UTF-8.

> Once again: Emacs is expected to support more than that, it is
> expected to behave according to the current system locale.

There is _NO_ system locale besides UTF-8.  Irrespective of the language
selected, the locale installed amounts to en_US.utf-8, with the
intention being that such programs as spell checkers will detect and
apply the user's language preferences themselves.

>> >   . what will be the default coding-systems in Emacs? will they always
>> >     be UTF-8?
>> 
>> Yes.
>> 
>> >   . what will be the default dictionary for spell-checking? will it
>> >     always be English?
>> 
>> Yes, unless the system's spell checker is being used.
>> 
>> >   . what will be the default language-environment in Emacs? will it
>> >     always be UTF-8? if so, what would be the default input method to
>> >     be turned on when the user types 'C-\' ?
>> 
>> It'll always be UTF-8, and typing C-\ should prompt the user for the
>> input method to enable.
>
> Such behaviors are unacceptable.  We should fix them so that Emacs on
> Android behaves like it does on other platforms, or else we cannot
> release such an Android port.  Please work on fixing these glaring
> omissions.

How can it be fixed, when there are only two locales (C and UTF-8) in
existence?  Android spell checkers are meant to provide their own means
for detecting and applying the system's language preferences, because
the system does not on their behalf.

Thanks.



  reply	other threads:[~2023-12-08 10:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-07 18:11 master e4e1e268c8e 2/2: Set a default locale on Android Eli Zaretskii
2023-12-08  0:11 ` Po Lu
2023-12-08  6:43   ` Eli Zaretskii
2023-12-08  6:49     ` Po Lu
2023-12-08  7:08       ` Eli Zaretskii
2023-12-08  7:24         ` Po Lu
2023-12-08  7:45           ` Eli Zaretskii
2023-12-08 10:30             ` Po Lu [this message]
2023-12-08 12:27               ` Eli Zaretskii
2023-12-08 13:40                 ` Po Lu
2023-12-08 14:31                   ` 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

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

  git send-email \
    --in-reply-to=875y19m1es.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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.