Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#38040 closed defect (invalid)

emacs-mac-app and coding system

Reported by: angelo.graziosi@… Owned by: humem (humem)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: utf-8, iso-latin1 Cc:
Port: emacs-mac-app

Description

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.

Attachments (1)

emacs_coding.tar.bz2 (3.5 KB) - added by angelo.graziosi@… 12 years ago.
attachment

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by angelo.graziosi@…

Attachment: emacs_coding.tar.bz2 added

attachment

comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: hum@… removed
Owner: changed from macports-tickets@… to hum@…

Thanks for the ticket.

comment:2 Changed 12 years ago by seanfarley (Sean Farley)

Resolution: invalid
Status: newclosed

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(?).

comment:3 in reply to:  2 ; Changed 12 years ago by angelo.graziosi@…

Replying to 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.

comment:4 in reply to:  3 ; Changed 12 years ago by seanfarley (Sean Farley)

Replying to angelo.graziosi@…:

Replying to 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?

comment:5 in reply to:  4 Changed 12 years ago by angelo.graziosi@…

Replying to sean@…:

Replying to angelo.graziosi@…:

Replying to 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...

Note: See TracTickets for help on using tickets.