diff options
| author | Po Lu | 2023-12-07 14:05:35 +0800 |
|---|---|---|
| committer | Po Lu | 2023-12-07 14:05:35 +0800 |
| commit | e4e1e268c8e9f7de6fe5d4b05beb595a1781c02c (patch) | |
| tree | 35dfa8f1cf3b398eb3369406bf3315169c4e9da3 /doc | |
| parent | 48965d0862751131eb873b71e39c70e97a683eaa (diff) | |
| download | emacs-e4e1e268c8e9f7de6fe5d4b05beb595a1781c02c.tar.gz emacs-e4e1e268c8e9f7de6fe5d4b05beb595a1781c02c.zip | |
Set a default locale on Android
* doc/emacs/android.texi (Android Environment): Revise for
change.
* src/android.c (initEmacs): Set LANG to either en_US.utf8 or C,
subject to whether the system is newer than Android
5.0 (inclusive).
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/android.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/emacs/android.texi b/doc/emacs/android.texi index 915ba948b93..52912d045eb 100644 --- a/doc/emacs/android.texi +++ b/doc/emacs/android.texi | |||
| @@ -409,6 +409,16 @@ Startup}) connect the Android system to another computer, and run: | |||
| 409 | $ adb shell "settings put global settings_enable_monitor_phantom_procs false" | 409 | $ adb shell "settings put global settings_enable_monitor_phantom_procs false" |
| 410 | @end example | 410 | @end example |
| 411 | 411 | ||
| 412 | @cindex C locale settings, Android | ||
| 413 | Emacs does not respect the locale configured for user applications | ||
| 414 | in the system, for the selection of locales available there does not | ||
| 415 | match that supplied by the C library. When Emacs starts on Android | ||
| 416 | 5.0 or newer, the @code{LANG} environment variable is set to | ||
| 417 | @code{en_US.utf8}, which induces subprocesses linked against the | ||
| 418 | Android C library to print output sensibly. Earlier versions of | ||
| 419 | Android do not implement locales at all, on account of which the | ||
| 420 | variable is set to @code{C} instead. | ||
| 421 | |||
| 412 | @cindex running emacs in the background, android | 422 | @cindex running emacs in the background, android |
| 413 | @cindex emacs killed, android | 423 | @cindex emacs killed, android |
| 414 | @cindex emacs in the background, android | 424 | @cindex emacs in the background, android |