From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master e4e1e268c8e 2/2: Set a default locale on Android Date: Fri, 08 Dec 2023 18:30:51 +0800 Message-ID: <875y19m1es.fsf@yahoo.com> References: <83sf4d2894.fsf@gnu.org> <83il5919fo.fsf@gnu.org> <87edfxmbnk.fsf@yahoo.com> <83edfx189r.fsf@gnu.org> <87a5qlma25.fsf@yahoo.com> <838r6516jc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25290"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 08 11:31:48 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rBY95-0006MY-Kw for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Dec 2023 11:31:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBY8T-0004cJ-VQ; Fri, 08 Dec 2023 05:31:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBY8S-0004cA-Vt for emacs-devel@gnu.org; Fri, 08 Dec 2023 05:31:09 -0500 Original-Received: from sonic301-31.consmr.mail.ne1.yahoo.com ([66.163.184.200]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBY8R-0000UF-5a for emacs-devel@gnu.org; Fri, 08 Dec 2023 05:31:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702031465; bh=KUIwfDDgR+i7bK5EDG7eNudZ2uK91UT6iwKNZel5OmA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=MYUIOfphRQBjFY6t+bwNjPk7QQwK9gBp0LkG5Mr55Y0YImFZcm2zm/yhQ0mUNnwZ8uLoqOOXwUBXbAEnkmZzINAcBOvKjv9xazkyc0PwDwAfrwhAbmZn9nj7cU3gAGxeL2sS4tTbcbO0ZZW7LvWBR6bVoVS4qWmWxCZaI3XpmR3fN5O0rdGbDst1b58nYysN0dpEmoMxQMT9b9dPVPrwenuyzO0kcrgN8YzHGPruF/gR9UQPaeh5T5D0ADIvCaZOhQKMKDUpf0jWclctEyoQMD1FG55fa0fIPOwztkSIOgSplgGV0G5yUJlxj1pKUD4yACVPnxb+TUU29e621gYEug== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702031465; bh=0lpnxhjVWl+MEBNO/mEsL31zOOG/YXsMM8buX68rr97=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=iI6dsA+e0CFDIUPmt8LZkhsmOgp+CbIjOvm2bRohir6nlN2Bt+y+N9+phNaMKSKC3DKFuTHoQdknWJCwQ+YpHVaXkSHQULcdhWUy7TOtKXkgUuLn5hhEoDYMZ61Fpk1CgP5sqay9o1967VNK6TsVoZZwsAKbOpqnFoa9mGYtyMCyluwdqFOkipcWmkYGlH5rZnyXuCvqdH1dZxdFU5xtd1a6OdJc+0l5nniK28qmcfYDIQWgICWPFZoUZoCBY60E1FXOGGR7NEMoOWbiEdjEczDv8vqTgkgfz+rTF/MM8fqij0Qlru0iOvuG0ZGPqAL+FB/iL9yas95eqhUJGJCwPA== X-YMail-OSG: O8R8rQwVM1lKtDdGm5N9oVthtA6FGjFgrCYYKi_.zu.8UMLzP5YEUfUWOpruS8s jrSLh_c76NBHr5q2xIS6cH08L5ntYgsD4Po9fsqS46E2YU3KIGSQ2LpvFC4FPuz9tRffOnfFUQ5k g1Rom5WI.JNdxCEz4r2Qq63LIXlbrB6XwyeyK.zlgnYWP9NCS1xs48UAkBkhveo9sOne8u8XZmsi tJq0C.zKTHNN6QELT9yKjI7SSMY9dr43JTBEr6gNm.3aHTl._SKdvmHcub7LlKI5EZlXwdmo.sSq LBMgHOYJzQMErefkgqu8GOKEj_.OQ7fd3MDc_Ixd4ZUka4B7DFRbMAmoz8ajiUBsK300SoAsU8i2 _OVH_QGbGk5U7Llm227sASDRMtZZJ6XZmQRhTr.eLJ_j6t5LZVyCfm29XZUNARXJBGviZYbqcxHw iCD9TikZwc.txFbrv2cEigGkVDfMXNGm7VOpLEbRtsFVQTx20qfqD5FY_kpkNEUhR_Fx3i76p3zQ YNZhJ23B3jTTic8MThVoJIWlD4Dz0HSHMjy15nFMu5laPH6nHvvjRWqN90xSF8juYnE7kGddTj09 ooV24LdtFCMtedFex7TtDfSZxxSsJfiSdQJwgqcGtdxL5s9wSRQhJat5xoYoh9SfKs8QxCc7G3ni 22dvsKYPENmKCKTZuF2Whb.ojQkW.n5VsWH5jWQmSINP3ru.6tYtFmM_FWygwUHFcaSLceG0zl4b HHBeuvyMGYazvnxlUk9Pkhi7470V2whvtZ5ZGsp8jXDqfsKFw6bK0f7spJTZ_6_JAD8oJsLjsPAl w461jSP_qu7bM0cGL_oLxc0nZ.ApZzMoxpa3hQh5N2 X-Sonic-MF: X-Sonic-ID: 33a4367f-2cd4-4455-878b-39fc63b83489 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Fri, 8 Dec 2023 10:31:05 +0000 Original-Received: by hermes--production-sg3-f6b777bf6-jwhq4 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 75fff2c59c4c8ccd8a709bd5012c491d; Fri, 08 Dec 2023 10:30:59 +0000 (UTC) In-Reply-To: <838r6516jc.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Dec 2023 09:45:43 +0200") X-Mailer: WebService/1.1.21943 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.200; envelope-from=luangruo@yahoo.com; helo=sonic301-31.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313610 Archived-At: Eli Zaretskii 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.