]> git.eshelyaron.com Git - emacs.git/commit
Correctly handle non-BMP characters in Android content file names
authorPo Lu <luangruo@yahoo.com>
Sat, 23 Mar 2024 07:37:43 +0000 (15:37 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Mar 2024 14:20:48 +0000 (15:20 +0100)
commitf9ce6746c4ef80ce1c274b40be0b7f558ae356dd
tree361578707c09b4bad3f8553d35949633cc98830b
parent8b7ad5d5b841fa0526a11702cc87bb8dba737bf4
Correctly handle non-BMP characters in Android content file names

* lisp/term/android-win.el (android-encode-jni)
(android-decode-jni, android-jni): New coding system, for
Android file names and runtime data.

* src/androidterm.h (syms_of_androidvfs): New function.

* src/androidvfs.c (struct android_special_vnode): New field
special_coding_system.
(android_saf_tree_readdir): Decode the file name using the
android-jni coding system.
(special_vnodes): <contents>: Specify a file name coding system.
(android_vfs_convert_name): New function.
(android_root_name): If a special coding system be specified for
a special vnode, convert components to it before invoking its
name function.
(syms_of_androidvfs): New symbol Qandroid_jni.

* src/emacs.c (android_emacs_init): Call syms_of_androidvfs.

(cherry picked from commit e39cb515a108682b520e499c334a600ee634fbf6)
lisp/term/android-win.el
src/androidterm.h
src/androidvfs.c
src/emacs.c