[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error opening an APK file

From: Robert Pluim
Subject: Re: Error opening an APK file
Date: Fri, 20 Sep 2019 14:23:39 +0200

>>>>> On Fri, 20 Sep 2019 08:14:37 -0400, Stefan Monnier 
>>>>> <> said:

    Stefan> Eli Zaretskii [2019-09-20 10:26:31] wrote:
    >>> From: Pascal Quesseveur <>
    >>> Date: Thu, 19 Sep 2019 09:15:00 +0200
    >>> >"EZ" == Eli Zaretskii <> writes:
    EZ> Are you saying that just renaming a .apk file to .zip solves the
    EZ> problem?
    >>> Yes. In files.el auto-mode-alist associates archive-mode for archive
    >>> file extensions: arc, zip, ...  The comment says:
    >>> ;; The list of archive file extensions should be in sync with
    >>> ;; `auto-coding-alist' with `no-conversion' coding system.
    >>> In fact, auto-coding-alist in mule.el associates archive file
    >>> extensions with no-conversion-multibyte.
    >> And if you add apk to auto-coding-alist, the problem goes away?

    Stefan> How 'bout a patch along the lines of the one below?

    Stefan>         Stefan

    Stefan> diff --git a/lisp/international/mule.el b/lisp/international/mule.el
    Stefan> index ec6f647688..c570caa993 100644
    Stefan> --- a/lisp/international/mule.el
    Stefan> +++ b/lisp/international/mule.el
    Stefan> @@ -1844,12 +1843,9 @@ auto-coding-alist
    Stefan>    ;; .exe and .EXE are added to support archive-mode looking at DOS
    Stefan>    ;; self-extracting exe archives.
    Stefan>    (mapcar (lambda (arg) (cons (purecopy (car arg)) (cdr arg)))
    Stefan> -     '(("\\.\\(\
    Stefan> -arc\\|zip\\|lzh\\|lha\\|zoo\\|[jew]ar\\|xpi\\|rar\\|7z\\|\
    Stefan> -ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'"

Why upcase the extensions? My .zip files are named .zip, and I have a
case-sensitive file system.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]