Re: gcc and smart quotes
Carl Lowenstein wrote: > On 3/8/07, Stewart Stremler <[EMAIL PROTECTED]> wrote: >> begin quoting Carl Lowenstein as of Thu, Mar 08, 2007 at 04:05:19PM >> -0800: >> > I am trying to port a program, namely "checkinstall", to my 64-bit >> > Alpha. Working remotely through ssh. >> > >> > The OS is the port to Alpha of Fedora Core 5. The compiler is >> > gcc version 4.1.1 20060525 (Red Hat 4.1.1-1) >> > >> [snip] >> > Can anyone think of a reason why gcc was made to do this? Or have >> > some idea of when it happened? Or suggest something better in the way >> > of a terminal emulator? >> >> What's your locale? >> >> I'd probably start by messing around with that; it's probably >> trying to be Unicode on you, 'cuz Just Working isn't nearly so fun >> as Forcing Everyone To Be Like I Want Them To. >> >> > Got it in one. I should have thought of that myself, but sometimes > the neurons misfire. > > $ export LC_ALL=C > > makes things much more readable. Of course it doesn't cure the "all > the world's a 32-bit PC" problems, but now I can concentrate on those. > > Wonder where locale is officially set. I can always change it in > $HOME/.bash_profile I'll tell you where it is in RH-family, but don't tell SS: /etc/sysconfig/i18n Regards, ..jim -- KPLUG-LPSG@kernel-panic.org http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
Re: gcc and smart quotes
On 3/8/07, Stewart Stremler <[EMAIL PROTECTED]> wrote: begin quoting Carl Lowenstein as of Thu, Mar 08, 2007 at 04:05:19PM -0800: > I am trying to port a program, namely "checkinstall", to my 64-bit > Alpha. Working remotely through ssh. > > The OS is the port to Alpha of Fedora Core 5. The compiler is > gcc version 4.1.1 20060525 (Red Hat 4.1.1-1) > [snip] > Can anyone think of a reason why gcc was made to do this? Or have > some idea of when it happened? Or suggest something better in the way > of a terminal emulator? What's your locale? I'd probably start by messing around with that; it's probably trying to be Unicode on you, 'cuz Just Working isn't nearly so fun as Forcing Everyone To Be Like I Want Them To. Got it in one. I should have thought of that myself, but sometimes the neurons misfire. $ export LC_ALL=C makes things much more readable. Of course it doesn't cure the "all the world's a 32-bit PC" problems, but now I can concentrate on those. Wonder where locale is officially set. I can always change it in $HOME/.bash_profile carl -- carl lowenstein marine physical lab u.c. san diego [EMAIL PROTECTED] -- KPLUG-LPSG@kernel-panic.org http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
Re: gcc and smart quotes
In what way doesn't gnome-terminal handle smart quotes? That really sounds like a big bug. I'd report that. Carl Lowenstein wrote: For what it's worth, a left quote is hex e2 80 98 and a right quote is e2 80 99 That sure looks like UTF-8 to me. Given this is Fedora, you are likely to have a LANG or LOCALE variable of "en_US.UTF-8" or similar somewhere around. Set that to "C" and see if it works. (Pops open CentOS 4 under VMWare) Ayup, it's under LANG. export LANG="C" ought to fix that. As a side benefit, "ls" sorting should go back to the way it should be. Can anyone think of a reason why gcc was made to do this? Sure. Unicode variable names are certainly desirable for people who don't speak English. Or suggest something better in the way of a terminal emulator? Hah. I've been looking for a decent terminal emulator for years. Let me know if you find one. I tend to use rxvt not because it's good, but because it's relatively minimal.. "But, it's so much more fun to write a new, crappy one than fix bugs in the old one." -a -- KPLUG-LPSG@kernel-panic.org http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
Re: gcc and smart quotes
At 04:05 PM 3/8/07 -0800, Carl Lowenstein wrote: >The terminal emulator that I am using to read the compiler diagnostic >output can not cope with these quotes. Maybe filter the output stream before it hits the terminal? Barry What have they done to my ASCII? *MIDI* keys are 3 bytes each. -- KPLUG-LPSG@kernel-panic.org http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
Re: gcc and smart quotes
Carl Lowenstein wrote: > I am trying to port a program, namely "checkinstall", to my 64-bit > Alpha. Working remotely through ssh. > > The OS is the port to Alpha of Fedora Core 5. The compiler is > gcc version 4.1.1 20060525 (Red Hat 4.1.1-1) > > There are, of course, compiler warnings and errors. The messages are > hard to understand because variable names are quoted using smart left > and right single quotes. > > The terminal emulator that I am using to read the compiler diagnostic > output can not cope with these quotes. It is gnome-terminal 2.7.3 on > one of my local systems and gnome-terminal 2.16.0 on the other. The > visible rendering of the symbols is different on the two terminal > emulators, but equally hard to read. > > For what it's worth, a left quote is hex e2 80 98 and a right quote > is e2 80 99 > > I can read the messages by sending them to a file and then using "gedit". > > Can anyone think of a reason why gcc was made to do this? Or have > some idea of when it happened? Or suggest something better in the way > of a terminal emulator? > Lookling into some of my old output dumps from compiles and rpm rebuilds, I see 2 kinds of quoting, one uses the good old simple single (apostrophe) before and after. The other use backquote in the leading position. I didn't see any of those (other) dumb quotes (although I think the backtick is plenty bad enough. I have my locale at utf8, but I bet my rpm tools use LC_CTYPE=C. In your case, you might try LC_CTYPE=C make or export LC_CTYPE=C, I suppose. I've had to do similar to this when printing man pages! Regards, ..jim -- KPLUG-LPSG@kernel-panic.org http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
Re: gcc and smart quotes
begin quoting Carl Lowenstein as of Thu, Mar 08, 2007 at 04:05:19PM -0800: > I am trying to port a program, namely "checkinstall", to my 64-bit > Alpha. Working remotely through ssh. > > The OS is the port to Alpha of Fedora Core 5. The compiler is > gcc version 4.1.1 20060525 (Red Hat 4.1.1-1) > [snip] > Can anyone think of a reason why gcc was made to do this? Or have > some idea of when it happened? Or suggest something better in the way > of a terminal emulator? What's your locale? I'd probably start by messing around with that; it's probably trying to be Unicode on you, 'cuz Just Working isn't nearly so fun as Forcing Everyone To Be Like I Want Them To. -- Maybe you can use iconv? Stewart Stremler -- KPLUG-LPSG@kernel-panic.org http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg