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 21:40:42 +0800 Message-ID: <871qbwn76t.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> <875y19m1es.fsf@yahoo.com> <83v898zxp3.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="14288"; 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 14:41:44 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 1rBb6s-0003Qf-C9 for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Dec 2023 14:41:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBb6E-0002mC-KE; Fri, 08 Dec 2023 08:41:02 -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 1rBb6D-0002kx-1q for emacs-devel@gnu.org; Fri, 08 Dec 2023 08:41:01 -0500 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBb6B-0008AE-5u for emacs-devel@gnu.org; Fri, 08 Dec 2023 08:41:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702042856; bh=cnRJw+Zgli6iKifqrBqck54mz8rMLW66zWRk6ThRePY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=NUMQiXPWS5okmNIxZ1fGtHGpnSle5uSrJbjqAHe7vL/mVNhuAqRSrxHecQ1HsoVw0YvfqrKp0XrbDEEadINOi7GGefv1dvNs1P6tcVtV9qv8xoM2ud3MR7g7nFYeZk9OWbhhNwdRa3vH32ckKZzHOKGlLLDf4QZmOW9lcy5PBCbLfU1Isnpmr3zui/pMc8BXpga3u7Ef5VWTG+3FCh35vDgcnwrkD/2GpxzhDOb4KT3KTQ7FivRG064RewmwzpDkc0RjhQBnTKvmvdCh40DOcdM9TCo/K56Hv0G2xhJ1NniywR/wNxOXWfOzs8PTWzfKrSFyqrJiR2y9tSVvdErd0g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702042856; bh=KF5NwhUDBeEewIerJzFv6vtQb29AMV4nMyqDdZczNKN=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=A2FWyVsVWdb11anVwfaaymvzGiyULdqpsnDAHfk+c+LbJ8Y9mZpunq3mxoZ78AOteIAQQYbIPdLCXIpRst1QmMRBNov/0FLTfRxopPa+c0xFtepK5JGtASlLVMS53O0xqDFU4VBmWOck/fBR3vEFUlLDWZny7lh8Qhr9pYkyhmuSgfcqneh2K0iJFDOjtPlDW20Am8m6G4T/wl1WFR5aLwjyO5PJWhgjYzJl+TdEHukeGHo29qh6GCwKVVY5MBdARIZs0P5ZA9xYsJO/Kq023DTe4bQSq8yAahBpvLywkrUXaPErGiUEJ+LPnAEGffld/zIeImagm04tkjSkv1HfFA== X-YMail-OSG: _QSbtNkVM1ncYY8LEDdmWOhE15dXCvv82fYIwREv0IQn6y3kFi4hleKPyiBWGWD FkMP1_8r27WBb2gcpEYlsENw_I1mW0luC7EqlsoMYQxRG17m3wJi3DDbtOizkEow6con81FSqXfs njBxRJrBTw4qRzrqSXP_Or1InY1Fu7flDtwmC1ZgadPRcKxRLbttgZ5z8tzdiEUmcmbz_j9AVGYU R7dRAVZXt1z77Hn3dKPKxjLq9aOv3EYfH3tcLE0xJG4NUURbwOdQ_vJnIFEQoHiGA9ttlt7c5izh SMHINSf0waqrqJWMZF0Nb0Hbm1zdKd_KFoiEutZgh51.9t8Sdfc0IXB7yyInMWWPmPdBYvG5_FdD _l79aSKfrInq_XNuRuoiWSYnccL1wdQc56AV3.kgcRWqqSQRBRFHzLvTfeOtvjcC_Yb.lWb2ynW9 tmp6wkFshbx.xALgR7Co9sJCEsYoBpcz7AlCHYGmRfwobH_gUIhbo9nA_JStbpT6oOl271ZX1daz rVhyqEztWbFTWHt46K0UaLk1aE4nFithjuGuiONqnxnM1XzpwYlrXCsuLLl3plhctL_IqUSMA4iw 9z4J7YTyqqUobeR78UnWB8Q68qQbIETYmlDUeg07A1bTqYCS2hwuZLmYI5jrJSL87l5_CsssNCGi RChVLwZx84cfFQ9Xsu6e8r4esn5XlWneAKyEJEBKV9YuiWb1eo9nNZzecJJ94aMmRbf9HwoWCtVt ZzRu4JdLNdJI3P13vChGe18_ifIziQS7Xpm3MLV4xOpcwRX.Ew07nJmSHGNav2fAlKKTnXpKl79i W3qFYWwlB6ez59cENbWsJN7sNmnpP9stSUiLdPlSYE X-Sonic-MF: X-Sonic-ID: 0bde8cf9-b6db-444b-bbb8-899440aac9cc Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Fri, 8 Dec 2023 13:40:56 +0000 Original-Received: by hermes--production-sg3-f6b777bf6-762ld (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID dbd7bbe8d5f0476b093a778428ce4973; Fri, 08 Dec 2023 13:40:50 +0000 (UTC) In-Reply-To: <83v898zxp3.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Dec 2023 14:27:20 +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.186.204; envelope-from=luangruo@yahoo.com; helo=sonic310-23.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:313614 Archived-At: Eli Zaretskii writes: >> From: Po Lu >> Cc: emacs-devel@gnu.org >> Date: Fri, 08 Dec 2023 18:30:51 +0800 >> >> 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. > > Now I'm confused: if the above is true, then what is the below about? > > Emacs does not respect the locale configured for user applications > in the system, for the selection of locales available there does not > match that supplied by the C library. When Emacs starts on Android > 5.0 or newer, the @code{LANG} environment variable is set to > @code{en_US.utf8}, which induces subprocesses linked against the > Android C library to print output sensibly. > > My interpretation of this was that Android does support locales > "configured for user applications", but Emacs doesn't respect that. > If that interpretation is incorrect, then how should the above text be > interpreted? And what does "locale configured for user application" > mean then? I could've chosen better nomenclature. That was meant as a reference to the system's configured language, in Settings. > Let's defer this question until we are on the same page wrt locales > and language settings on Android. As an active user of Android > (though not of Emacs on Android), I know that there _are_ > configuration settings for system language and for each application, > they are under Settings->General Management->Language and > Settings->General Management->App Languages. There are also settings > for keyboard, which are conceptually part of the language-environment > in Emacs. Some Android smartphones also have Regional Preferences. Yes, but these don't affect the value of the LANG variable, and each of the languages within uses the UTF-8 coding system. FTR, this is System -> Languages & Input -> Languages for me. > How will that work with ispell.el in Emacs? Probably the copy of aspell must be modified; but the spell checker I personally use on Android systems is jinx from ELPA, which is much faster, and requires the default language be set by hand. Thanks.