[MacPorts] #38040: emacs-mac-app and coding system
#38040: emacs-mac-app and coding system -------------------------------+-------------------------------- Reporter: angelo.graziosi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: utf-8, iso-latin1 | Port: emacs-mac-app -------------------------------+-------------------------------- I have installed emacs-mac-app @3.92 with {{{ sudo port -s install emacs-mac-app }}} but perhaps there is a problem with the coding system... 1) In the attached archive there is a file, la_bibliografia.tex.orig, which is shown coded in utf8 with: Aquamacs, emacs-app (Macports) on MAC OS X. The same occurs on GNU/Linux (Ubuntu, Kubuntu, Fedora) and GTK Emacs, and on Cygwin with GTK Emacs. 2) Instead with emacs-mac-app (Macports) it is shown coded iso-latin1 ("1" in the mode line). What is expected and right for me is the case 1): utf-8, "U" in the mode line. That file contains the (opened) accented character "a" (line 127, column 14) and I can see this character with "less", "cat" and the Emacs distributions as described in 1). Anyway, emacs-mac-app shows it as iso-latin1 and as a capital "A" followed by an underscore (_), with a tilde (~) over. If I convert it in utf8 by means of C-x RET f utf-8 RET, I got the other file, la_bibliografia.tex .emacs-mac-app, in the attached archive, and emacs-mac-app shows it coded utf8 ("U" in the mode line) but it displays the file with the same result for what regards the accented character (a capital A with...) :-( emacs-mac-app shows this strange behavior ONLY when I start it with the link I find in Launchpad. Instead if I use {{{ $ /Applications/MacPorts/EmacsMac.app/Contents/MacOS/Emacs & }}} I got the same results described in 1), i.e. the right utf-8 coding and the right displayed accented character... Removing .emacs.d or starting from command line adding "-Q" does not change the above conclusions. Ciao, Angelo. -- Ticket URL: <https://trac.macports.org/ticket/38040> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38040: emacs-mac-app and coding system --------------------------------+------------------------------- Reporter: angelo.graziosi@… | Owner: hum@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: utf-8, iso-latin1 Port: emacs-mac-app | --------------------------------+------------------------------- Changes (by larryv@…): * cc: hum@… (removed) * owner: macports-tickets@… => hum@… Comment: Thanks for the ticket. -- Ticket URL: <https://trac.macports.org/ticket/38040#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38040: emacs-mac-app and coding system --------------------------------+------------------------------- Reporter: angelo.graziosi@… | Owner: hum@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: invalid | Keywords: utf-8, iso-latin1 Port: emacs-mac-app | --------------------------------+------------------------------- Changes (by sean@…): * status: new => closed * resolution: => invalid Comment: Being that this works from launching emacs-mac from the command line, that would seem to imply that there an environment variable missing / not being set the same way as in you shell (this is a common problem on the mac with .app programs). I was a little dubious I could recreate the problem but I did! And it's not that bad, following the advice here: http://email.esm.psu.edu/pipermail/macosx-emacs/2011-January/002537.html you can get the behavior you want by setting (prefer-coding-system 'utf-8) in your .emacs file. The better question is why this doesn't happen for emacs-app nor Aquamacs to which I don't know. If anyone knows the answer to that, please let me know by reopening the ticket. For now, I'll close this as invalid since it seems to be a config setting(?). -- Ticket URL: <https://trac.macports.org/ticket/38040#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38040: emacs-mac-app and coding system --------------------------------+------------------------------- Reporter: angelo.graziosi@… | Owner: hum@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: invalid | Keywords: utf-8, iso-latin1 Port: emacs-mac-app | --------------------------------+------------------------------- Comment (by angelo.graziosi@…): Replying to [comment:2 sean@…]:
you can get the behavior you want by setting (prefer-coding-system 'utf-8) in your .emacs file. The better question is why this doesn't happen for emacs-app nor Aquamacs to which I don't know. If anyone knows the answer to that, please let me know by reopening the ticket. For > now, I'll close this as invalid since it seems to be a config setting(?).
Hmm... It doesn't happen not only for emacs-app and Aquamacs but also for all Emacs I use on other systems (GNU/Linux, Windows): I never had to change .emacs for this issue... Only emacs-mac-app shows up this issue. BTW, I have built it (emacs-24.2.93-mac-3.93) with https://github.com/railwaycat/emacs-mac-port/blob/master/build- emacs.app.sh and with the same results... :-( Ciao, Angelo. -- Ticket URL: <https://trac.macports.org/ticket/38040#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38040: emacs-mac-app and coding system --------------------------------+------------------------------- Reporter: angelo.graziosi@… | Owner: hum@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: invalid | Keywords: utf-8, iso-latin1 Port: emacs-mac-app | --------------------------------+------------------------------- Comment (by sean@…): Replying to [comment:3 angelo.graziosi@…]:
Replying to [comment:2 sean@…]:
you can get the behavior you want by setting (prefer-coding-system 'utf-8) in your .emacs file. The better question is why this doesn't happen for emacs-app nor Aquamacs to which I don't know. If anyone knows the answer to that, please let me know by reopening the ticket. For now, I'll close this as invalid since it seems to be a config setting(?).
Hmm... It doesn't happen not only for emacs-app and Aquamacs but also for all Emacs I use on other systems (GNU/Linux, Windows): I never had to change .emacs for this issue... Only emacs-mac-app shows up this issue.
Yeah, the same for me. Do you know why this is happening? I suspect it's something to do with railwaycat's patches to emacs but I have no idea for certain.
BTW, I have built it (emacs-24.2.93-mac-3.93) with
https://github.com/railwaycat/emacs-mac-port/blob/master/build- emacs.app.sh
and with the same results... :-(
You mean that build-emacs.app.sh gave you the same utf-8 problem as before? -- Ticket URL: <https://trac.macports.org/ticket/38040#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38040: emacs-mac-app and coding system --------------------------------+------------------------------- Reporter: angelo.graziosi@… | Owner: hum@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: invalid | Keywords: utf-8, iso-latin1 Port: emacs-mac-app | --------------------------------+------------------------------- Comment (by angelo.graziosi@…): Replying to [comment:4 sean@…]:
Replying to [comment:3 angelo.graziosi@…]:
Replying to [comment:2 sean@…]:
you can get the behavior you want by setting (prefer-coding-system 'utf-8) in your .emacs file. The better question is why this doesn't happen for emacs-app nor Aquamacs to which I don't know. If anyone knows the answer to that, please let me know by reopening the ticket. For now, I'll close this as invalid since it seems to be a config setting(?).
Hmm... It doesn't happen not only for emacs-app and Aquamacs but also for all Emacs I use on other systems (GNU/Linux, Windows): I never had to change .emacs for this issue... Only emacs-mac-app shows up this issue.
Yeah, the same for me. Do you know why this is happening? I suspect it's something to do with railwaycat's patches to emacs but I have no idea for certain.
BTW, I have built it (emacs-24.2.93-mac-3.93) with
https://github.com/railwaycat/emacs-mac-port/blob/master/build- emacs.app.sh
and with the same results... :-(
You mean that build-emacs.app.sh gave you the same utf-8 problem as before?
Yes, exactly... -- Ticket URL: <https://trac.macports.org/ticket/38040#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts