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

Bug#593283: marked as done (libcdk5: Errors in examples of cdk_display(3) man page)



Your message dated Fri, 11 Feb 2011 01:18:00 +0000
with message-id <E1Pnhe4-0002CV-Af@franck.debian.org>
and subject line Bug#593283: fixed in libcdk5 5.0.20060507-3
has caused the Debian Bug report #593283,
regarding libcdk5: Errors in examples of cdk_display(3) man page
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.)


-- 
593283: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593283
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libcdk5
Version: 5.0.20060507-2
Severity: minor
Tags: upstream patch

Hello,

The examples in the cdk_display(3) man page are incorrect and don't work as expected (wrong colors, segfault, ...).

The attached patch make them work properly.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.35lp (PREEMPT)
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 libcdk5 depends on:
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib

libcdk5 recommends no packages.

libcdk5 suggests no packages.

-- no debconf information
--- cdk_display.3.orig	2006-04-17 12:45:02.000000000 +0200
+++ cdk_display.3	2010-08-16 23:27:03.487327228 +0200
@@ -54,7 +54,7 @@
 .nf
 .ce
 \fI----------------------------------------\fR
-#include <cdk.h>
+#include <cdk/cdk.h>
 
 void main()
 {
@@ -67,10 +67,13 @@
    screen = initscr();
    cdkscreen = initCDKScreen (screen);
 
+   /* Start CDK Colors */
+   initCDKColor();
+
    /* Set the labels up.		*/
-   mesg[0] = "</1>This line should have a yellow foreground and a blue background.<!1>";
-   mesg[1] = "</2>This line should have a white  foreground and a blue background.<!2>";
-   mesg[2] = "</3>This line should have a yellow foreground and a red  background.<!3>";
+   mesg[0] = "</31>This line should have a yellow foreground and a blue background.<!31>";
+   mesg[1] = "</05>This line should have a white  foreground and a blue background.<!05>";
+   mesg[2] = "</26>This line should have a yellow foreground and a red  background.<!26>";
    mesg[3] = "<C>This line should be set to whatever the screen default is.";
 
    /* Declare the labels.	*/
@@ -121,7 +124,7 @@
 .nf
 .ce
 \fI----------------------------------------\fR
-#include <cdk.h>
+#include <cdk/cdk.h>
 
 void main()
 {
@@ -134,10 +137,13 @@
    screen = initscr();
    cdkscreen = initCDKScreen (screen);
 
+   /* Start CDK Colors */
+   initCDKColor();
+
    /* Set the labels up.  */
-   mesg[0] = "</B/1>Bold text            yellow foreground / blue background.<!1>";
-   mesg[1] = "</U/2>Underlined text      white  foreground / blue background.<!2>";
-   mesg[2] = "</K/3>Blinking text        yellow foreground / red  background.<!3>";
+   mesg[0] = "</B/31>Bold text            yellow foreground / blue background.<!31>";
+   mesg[1] = "</U/05>Underlined text      white  foreground / blue background.<!05>";
+   mesg[2] = "</K/26>Blinking text        yellow foreground / red  background.<!26>";
    mesg[3] = "<C>This line uses the screen default colors.";
 
    /* Declare the labels.  */
@@ -190,22 +196,25 @@
 .ce
 \fI----------------------------------------\fR
 .nf
-#include <cdk.h>
+#include <cdk/cdk.h>
 
 void main()
 {
    CDKSCREEN    *cdkscreen;
    CDKLABEL     *demo;
    WINDOW       *screen;
-   char         *mesg[4];
+   char         *mesg[5];
 
    /* Initialize the Cdk screen.  */
    screen = initscr();
    cdkscreen = initCDKScreen (screen);
 
+   /* Start CDK Colors */
+   initCDKColor();
+
    /* Set the labels up.  */
-   mesg[0] = "<R></B/1>This line should have a yellow foreground and a blue background.<!1>";
-   mesg[1] = "</U/2>This line should have a white  foreground and a blue background.<!2>";
+   mesg[0] = "<R></B/31>This line should have a yellow foreground and a blue background.<!31>";
+   mesg[1] = "</U/05>This line should have a white  foreground and a blue background.<!05>";
    mesg[2] = "<B=+>This is a bullet.";
    mesg[3] = "<I=10>This is indented 10 characters.";
    mesg[4] = "<C>This line should be set to whatever the screen default is.";
@@ -295,7 +304,7 @@
 .ce
 \fI----------------------------------------\fR
 .nf
-#include "cdk.h"
+#include <cdk/cdk.h>
 
 void main()
 {
@@ -313,9 +322,9 @@
    initCDKColor();
 
    /* Set the labels up.  */
-   mesg[0] = "<C><#UL><#HL(25)><#UR>";
+   mesg[0] = "<C><#UL><#HL(26)><#UR>";
    mesg[1] = "<C><#VL></R>This text should be boxed.<!R><#VL>";
-   mesg[2] = "<C><#LL><#HL(25)><#LR>";
+   mesg[2] = "<C><#LL><#HL(26)><#LR>";
    mesg[3] = "<C>While this is not.";
 
    /* Declare the labels.  */

--- End Message ---
--- Begin Message ---
Source: libcdk5
Source-Version: 5.0.20060507-3

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

libcdk5-dev_5.0.20060507-3_amd64.deb
  to main/libc/libcdk5/libcdk5-dev_5.0.20060507-3_amd64.deb
libcdk5_5.0.20060507-3.debian.tar.gz
  to main/libc/libcdk5/libcdk5_5.0.20060507-3.debian.tar.gz
libcdk5_5.0.20060507-3.dsc
  to main/libc/libcdk5/libcdk5_5.0.20060507-3.dsc
libcdk5_5.0.20060507-3_amd64.deb
  to main/libc/libcdk5/libcdk5_5.0.20060507-3_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 593283@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Scott Howard <showard@debian.org> (supplier of updated libcdk5 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: SHA1

Format: 1.8
Date: Thu, 10 Feb 2011 19:50:32 -0500
Source: libcdk5
Binary: libcdk5 libcdk5-dev
Architecture: source amd64
Version: 5.0.20060507-3
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Scott Howard <showard@debian.org>
Description: 
 libcdk5    - C-based curses widget library
 libcdk5-dev - C-based curses widget library (development files)
Closes: 452401 500161 593283
Changes: 
 libcdk5 (5.0.20060507-3) unstable; urgency=low
 .
   * QA Upload.
   * Policy 3.9.1 (see Lintian cleaning below) and debian/compat 8
   * Lintian cleaning
     - ${misc:Depends} added to libcdk5 and libcdk5-dev
     - fixed make clean call: [ ! -f Makefile ] || $(MAKE) distclean
     - debian/compat 7
     - replaced ${Source-Version} with ${binary:Version} in debian/control
     - dh_prep used in rules instead of dh_clean -k
   * Removed static patching of config.guess config.sub, removed those files,
     they will be copied from autotools-dev package in debian/rules
   * removed the following lines from debian/libcdk5-dev.install
     (dh_install throws error if you try to install files from an empty dir,
     and these files were not present in the previous Debian build)
     - usr/lib/pkgconfig/*
     - usr/lib/*.la
     - usr/share/pkgconfig/*
   * Added missing headers and example files (Closes: #500161, LP: #565526)
     - debian/patches/missing_header_examples.patch
     - debian/libcdk5-dev.examples added: include/cdk_test.h, examples/.,
       demos/
   * Fixed segfault in calendar.c (Closes: #452401, LP: #290624)
     - debian/patches/cal_segfault.patch
   * debian/patches/libcdk5_man_cdk_display_examples_fix.diff
     - The examples in the cdk_display(3) man page are incorrect
       (wrong colors, segfault) (Closes: #593283)
Checksums-Sha1: 
 de6081e390ec44172091e7c865a47dd9c463dbb1 1069 libcdk5_5.0.20060507-3.dsc
 bda23411da7af37922862ba3a694533b42cb9a64 7423 libcdk5_5.0.20060507-3.debian.tar.gz
 c229dd722caffe1cfb242403a20408bc7e29b1e0 133578 libcdk5_5.0.20060507-3_amd64.deb
 9cbdc67e021b0c52de22a45a871c9ccb428f5165 406420 libcdk5-dev_5.0.20060507-3_amd64.deb
Checksums-Sha256: 
 59ebdc3445559b4723a38b394bd4a9401dc13d74acc5090d6437a69b9e20b87b 1069 libcdk5_5.0.20060507-3.dsc
 d52e133551f294d450ea0a4358a2ef935f46d4caedc5288dd56809c8070219af 7423 libcdk5_5.0.20060507-3.debian.tar.gz
 c1a012f8e59041e3d1864b48fbba2905a871bba0bce63ec4ba4d8ec1608bc325 133578 libcdk5_5.0.20060507-3_amd64.deb
 eb02257fe95d0fb0841e2180526f9e0d7c92c0e685d9e863adede72a2a485c32 406420 libcdk5-dev_5.0.20060507-3_amd64.deb
Files: 
 2d3cd8eaf8c1c15f51da9f39644f79d1 1069 libs optional libcdk5_5.0.20060507-3.dsc
 98b7ea6316a2bf4f7121aa97f898e93e 7423 libs optional libcdk5_5.0.20060507-3.debian.tar.gz
 30126dad5236f6b5b7100401c10b9459 133578 libs optional libcdk5_5.0.20060507-3_amd64.deb
 220eb19696877469f6f543a030e35a7d 406420 libdevel optional libcdk5-dev_5.0.20060507-3_amd64.deb

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

iEYEARECAAYFAk1UisQACgkQuqVp0MvxKmoQygCeKJf9ONSYsUql827NnhiktSYd
md0An2LIcbrhL+VMRpUWmRiH9jokRSkD
=HqkE
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: