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

Bug#5312: ae escapes 8-bit chars by default



On Thu, 7 Nov 1996, Dale Scheetz wrote:

> On Thu, 7 Nov 1996, Santiago Vila Doncel wrote:
> 
> > Package: ae
> > Version: 962-10
> > 
> > ae escapes 8-bit chars by default. It should not.
> > 
> > When I type "camión único", I see "cami\363n \372nico", which is not
> > the "natural" way to see those words.
>  
> This is probably because ae doesn't support the character set. I will pass
> this on to the upstream maintainer, but it lookes like more than a trivial
> fix.

Here is a "quick and dirty" fix:

--- display.c.orig	Thu May  9 04:42:49 1996
+++ display.c	Fri Nov  8 17:00:40 1996
@@ -22,0 +23,6 @@
+ * Consider "printable" any iso-8859-1 character.
+ */
+
+#define my_isprint(ch) (isprint((ch)) || 160 <= (ch) && (ch) <= 255)
+
+/*
@@ -347 +353 @@
-	if (isprint(ch) || ch == '\t' || ch == '\n') {
+	if (my_isprint(ch) || ch == '\t' || ch == '\n') {
@@ -429 +435 @@
-	if (isprint(ch)) {
+	if (my_isprint(ch)) {


It works for me.

Regards,

Santiago Vila <sanvila@ctv.es>

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: