From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Error opening an APK file Date: Fri, 20 Sep 2019 14:23:39 +0200 Message-ID: References: <8336guasv7.fsf@gmail.com> <83ef0dvl23.fsf@gnu.org> <83y2yladpc.fsf@gmail.com> <835zlpvfs2.fsf@gnu.org> <83tv99abb5.fsf@gmail.com> <8336gtvd43.fsf@gnu.org> <83lfukahaj.fsf@gmail.com> <838sqjtom0.fsf@gnu.org> Reply-To: help-gnu-emacs@gnu.org Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128492"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 20 14:26:56 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBHzz-000XEx-C7 for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Sep 2019 14:26:55 +0200 Original-Received: from localhost ([::1]:58816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBHzw-0002bH-8j for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Sep 2019 08:26:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44608) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBHx2-0000zu-6u for help-gnu-emacs@gnu.org; Fri, 20 Sep 2019 08:23:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBHx1-0008Dn-4L for help-gnu-emacs@gnu.org; Fri, 20 Sep 2019 08:23:52 -0400 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:60892 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iBHx0-0008Ct-SM for help-gnu-emacs@gnu.org; Fri, 20 Sep 2019 08:23:51 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iBHwy-000ToI-52 for help-gnu-emacs@gnu.org; Fri, 20 Sep 2019 14:23:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: never Cancel-Lock: sha1:J78BGSfyEogPB99ds0vO6LqSzw0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121539 Archived-At: >>>>> 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. Robert