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

Bug#572730: marked as done (xtel: Enable teleinfo mode)



Your message dated Tue, 09 Mar 2010 17:04:53 +0000
with message-id <E1Np2rV-00062x-I4@ries.debian.org>
and subject line Bug#572730: fixed in xtel 3.3.0-7
has caused the Debian Bug report #572730,
regarding xtel: Enable teleinfo mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
572730: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572730
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: xtel
Version: 3.3.0-6
Severity: wishlist
Tags: patch

Hello,

Xtel has some support for teleinfo mode, but this is currently disabled
in xtel.c.  This is useful for e.g. the Sirene service.  The attached
patch enables it, and fixes a couple display glitches.

Samuel

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.33 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xtel depends on:
ii  lesstif2                  1:0.95.2-1     OSF/Motif 2.1 implementation relea
ii  libc6                     2.10.2-6       Embedded GNU C Library: Shared lib
ii  libice6                   2:1.0.6-1      X11 Inter-Client Exchange library
ii  libjpeg62                 6b-16.1        The Independent JPEG Group's JPEG 
ii  libsm6                    2:1.1.1-1      X11 Session Management library
ii  libx11-6                  2:1.3.3-1      X11 client-side library
ii  libxext6                  2:1.1.1-2      X11 miscellaneous extension librar
ii  libxp6                    1:1.0.0.xsf1-2 X Printing Extension (Xprint) clie
ii  libxpm4                   1:3.5.8-1      X11 pixmap library
ii  libxt6                    1:1.0.7-1      X11 toolkit intrinsics library
ii  openbsd-inetd [inet-super 0.20080125-4   The OpenBSD Internet Superserver
ii  ppp                       2.4.4rel-10.1  Point-to-Point Protocol (PPP) - da
ii  x11-common                1:7.5+3        X Window System (X.Org) infrastruc
ii  xbase-clients             1:7.5+3        miscellaneous X clients - metapack
ii  xfonts-utils              1:7.5+2        X Window System font utility progr
ii  xutils                    1:7.5+3        X Window System utility programs m

Versions of packages xtel recommends:
ii  logrotate                     3.7.8-4    Log rotation utility

xtel suggests no packages.

-- debconf information excluded

-- 
Samuel Thibault <samuel.thibault@fnac.net>
�Tiens, quand j'aurai un peu de temps et une partition libre, je crois
 que je vais essayer de remplacer mes scripts de d�marrage par des
 programmes Windows lanc�s via Wine et binfmt_misc :-)�
-+- AGV in Guide du linuxien pervers - "J'sais pas quoi faire... (air connu)"
diff -ur xtel-3.3.0.original/lecteur.c xtel-3.3.0/lecteur.c
--- xtel-3.3.0.original/lecteur.c	2001-02-11 01:01:00.000000000 +0100
+++ xtel-3.3.0/lecteur.c	2010-03-06 02:28:09.000000000 +0100
@@ -100,9 +100,13 @@
 	      kill (pid_teleinfo, SIGKILL);
 	      close (fd_teleinfo);
 	    } else {
+	      char s[8];
+	      int n;
 	      if (mode_emulation == MODE_TELEINFO_FR)
 		c = conversion_teleinfo_fr (c,3);
-	      write (fd_teleinfo, &c, 1);
+	      n = snprintf (s, sizeof (s), "%lc", (unsigned char) c);
+	      if (n != -1)
+		write (fd_teleinfo, s, n);
 	    }
 	}
 	else {
diff -ur xtel-3.3.0.original/ligne.c xtel-3.3.0/ligne.c
--- xtel-3.3.0.original/ligne.c	2001-02-11 01:01:34.000000000 +0100
+++ xtel-3.3.0/ligne.c	2010-03-06 02:27:59.000000000 +0100
@@ -172,9 +172,13 @@
 		    selection_mode_emulation (ecran_minitel, "V", NULL);
 		    return;
 	      } else {
+		char s[8];
+		int n;
 		if (mode_emulation == MODE_TELEINFO_FR)
 		  c = conversion_teleinfo_fr (c,1);
-		write (fd_teleinfo, &c, 1);
+		n = snprintf (s, sizeof(s), "%lc", (unsigned char) c);
+		if (n != -1)
+		  write (fd_teleinfo, s, n);
 	      }
 	    } else {
 	      videotexDecode (ecran_minitel, c);
diff -ur xtel-3.3.0.original/teleinfo.c xtel-3.3.0/teleinfo.c
--- xtel-3.3.0.original/teleinfo.c	2010-03-06 01:55:42.000000000 +0100
+++ xtel-3.3.0/teleinfo.c	2010-03-06 02:29:31.000000000 +0100
@@ -279,7 +279,8 @@
 	  break;
 
       case 0x0e :
-          c = 0xef ;
+          //c = 0xef ;
+          c = 0;
 	break ;
 	  
       case 0x1b :
@@ -310,11 +311,17 @@
     if (read (*fid, &c, 1) == 1)  {
         if (mode_emulation == MODE_TELEINFO_FR)
 	     c = conversion_teleinfo_fr (c,2);
-      
+
 	if (flag_connexion)
 	    write (socket_xteld, &c, 1);
-	else
-	    write (fd_teleinfo, &c, 1);
+	else {
+	    char s[8];
+	    int n;
+
+	    n = sprintf(s, sizeof(s), "%lc", (unsigned char) c);
+	    if (n != -1)
+	      write (fd_teleinfo, s, n);
+	}
     }
 }
 
diff -ur xtel-3.3.0.original/xtel.c xtel-3.3.0/xtel.c
--- xtel-3.3.0.original/xtel.c	2001-02-13 10:49:30.000000000 +0100
+++ xtel-3.3.0/xtel.c	2010-03-06 02:13:28.000000000 +0100
@@ -42,6 +42,8 @@
 #include "pixmaps/xtel.xpm"
 #endif /* NO_XPM */
 
+#include <locale.h>
+
 static Colormap current_cmap;
 static Cursor teleph_cursor;
 static Pixmap pixmap_icone = None;
@@ -446,6 +448,8 @@
     int i;
     Widget topLevel;
 
+    setlocale(LC_ALL, "");
+
     if (prototype_xtel == 0) {
 	if (PATCHLEVEL != 0)
 	    printf ("XTEL %d.%d.%d, Emulateur MINITEL/I-MINITEL\n", version_xtel, revision_xtel, PATCHLEVEL);
@@ -639,9 +643,9 @@
 
     XtRealizeWidget(topLevel);
 
-    /*
     XtAddCallback (ecran_minitel, XtNmodeCallback, (XtCallbackProc)selection_mode_emulation, (XtPointer)"A");
     XtAddCallback (ecran_minitel, XtNmodefrCallback, (XtCallbackProc)selection_mode_emulation, (XtPointer)"F");
+    /*
     XtAddCallback (ecran_minitel, XtNenregCallback, (XtCallbackProc)enregistre_caractere, (XtPointer)NULL);
     */
     init_xtel ();

--- End Message ---
--- Begin Message ---
Source: xtel
Source-Version: 3.3.0-7

We believe that the bug you reported is fixed in the latest version of
xtel, which is due to be installed in the Debian FTP archive:

xtel_3.3.0-7.diff.gz
  to main/x/xtel/xtel_3.3.0-7.diff.gz
xtel_3.3.0-7.dsc
  to main/x/xtel/xtel_3.3.0-7.dsc
xtel_3.3.0-7_amd64.deb
  to main/x/xtel/xtel_3.3.0-7_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 572730@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Samuel Thibault <sthibault@debian.org> (supplier of updated xtel package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 06 Mar 2010 16:03:18 +0100
Source: xtel
Binary: xtel
Architecture: source amd64
Version: 3.3.0-7
Distribution: unstable
Urgency: low
Maintainer: Samuel Thibault <sthibault@debian.org>
Changed-By: Samuel Thibault <sthibault@debian.org>
Description: 
 xtel       - X emulator of the French Minitel
Closes: 474129 527508 572730
Changes: 
 xtel (3.3.0-7) unstable; urgency=low
 .
   * debian/control:
     - New maintainer (Closes: #474129).
     - Bump Standards-Version to 3.8.4 (no changes needed).
     - Replace xbase-clients build-dep with xfonts-utils (for bdftopcf and
       mkfontdir).
     - Replace xutils with xutils-dev (for xmkmf) (Closes: #527508).
     - Drop xbase-clients and xfonts-utils Depends.
     - Fix spelling.
     - Move ppp from Depends to Recommends.
     - Add xterm to Recommends for teleinfo support
   * debian/rules: Remove install-stamp on clean.
   * xteld.man: Replace quotes with double quotes.
   * debian/prerm: Remove call to install-docs.
   * Enable teleinfo support and fix it for UTF-8 support (Closes: #572730).
Checksums-Sha1: 
 929dfd48183204839397901770a83e31de0db999 1166 xtel_3.3.0-7.dsc
 f0ab2950215af4fd5bf7bdd750f6d2b72d917f22 28069 xtel_3.3.0-7.diff.gz
 b993ff5802c18a153291dac87da9a5961285a4b9 220790 xtel_3.3.0-7_amd64.deb
Checksums-Sha256: 
 cca648d6febc8a86261234ffd8e7f2fc8b1c33e2e08d3935355fa2dfd826a4af 1166 xtel_3.3.0-7.dsc
 9c82fbe118dc1353600761beeb1a215535743e94779b0aedac52f24f7d2411aa 28069 xtel_3.3.0-7.diff.gz
 1530651317c18a7e2a793d2f0697a03ac4643b3c6b5e8bdcf007fb7471693a40 220790 xtel_3.3.0-7_amd64.deb
Files: 
 df4d3659b77ba91c9d18b09a907b596f 1166 comm extra xtel_3.3.0-7.dsc
 06b26a03d74ec596a9bfda63738ad775 28069 comm extra xtel_3.3.0-7.diff.gz
 0601941d65eda87b8aedea74222e8895 220790 comm extra xtel_3.3.0-7_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iF4EAREIAAYFAkuUSpsACgkQjSdX/Wzu6KZUQQD/aaEY2YpEN3OJ3Jtk5Ia5G5ty
mYKlS8oAQc7cDjVR6GwBAJrDfB16tGhdGEtbDnUNBhCQlyxa57Yet+ydEjuUrO9q
=yUzs
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: