Your message dated Wed, 13 Jun 2012 09:47:24 +0000
with message-id <[email protected]>
and subject line Bug#348856: fixed in dumpasn1 20120521-1
has caused the Debian Bug report #348856,
regarding dumpasn1 doesn't properly display localized BMPString
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 [email protected]
immediately.)
--
348856: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=348856
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dumpasn1
Version: 20030222-1
Severity: normal
Tags: patch
Dumpasn1 have code to convert unicode values in BMPString into current
locale, but this code doesn't work, because there is no setlocale call
in the program.
Also i've found that call to wprintf function as written in dumpasn1 source
doesn't work properly on Debian system, and it is better to use Mac OS X
branch here.
See attached patch.
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-athlon
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Versions of packages dumpasn1 depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
-- no debconf information
--- dumpasn1-20030222/dumpasn1.c 2004-04-16 17:59:14.000000000 +0400
+++ dumpasn1.c 2006-01-19 15:30:49.000000000 +0300
@@ -43,6 +43,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <locale.h>
#ifdef OS390
#include <unistd.h>
#endif /* OS390 */
@@ -325,8 +326,8 @@
/* This one seems to be popular as well */
"c:\\program files\\utilities\\",
-
/* General environment-based paths */
+ "$APPDATA/dumpasn1/",
"$DUMPASN1_PATH/",
NULL
@@ -356,7 +357,8 @@
"$HOME/BIN/",
#else
/* Debian has specific places where you're supposed to dump things */
- "$HOME/", "/etc/dumpasn1/",
+ /* Thanx, Peter, but you forgot the dot. User conf files should start with a '.' (oku). */
+ "$HOME/.", "/etc/dumpasn1/",
#endif /* DEBIAN-specific paths */
/* General environment-based paths */
@@ -798,7 +800,6 @@
for( i = 0; !isEnvTerminator( pathBuffer[ pathPos + i ] ); i++ );
memcpy( envName, pathBuffer + pathPos, i );
envName[ i ] = '\0';
-
/* Get the env.string and copy it over */
if( ( envString = getenv( envName ) ) != NULL )
{
@@ -1191,7 +1192,7 @@
warnBMP = TRUE;
else
{
- const wchar_t wCh = ( ch << 8 ) | getc( inFile );
+ const wchar_t wCh[2] ={ ( ch << 8 ) | getc( inFile ),0};
#if defined( __WIN32__ ) || ( defined( __UNIX__ ) && !defined( __MACH__ ) )
unsigned char outBuf[ 8 ];
#else
@@ -1206,24 +1207,25 @@
the data as non-Unicode. There's one exception to this
case, which is for a wrong-endianness Unicode string, for
which the first character looks like a single ASCII char */
- outLen = wcstombs( outBuf, &wCh, 1 );
+ outLen = wcstombs( outBuf, wCh, 8 );
if( outLen < 1 )
/* Can't be displayed as Unicode, fall back to
displaying it as normal text */
- ungetc( wCh & 0xFF, inFile );
+ ungetc( wCh[0] & 0xFF, inFile );
else
{
lineLength++;
i++; /* We've read two characters for a wchar_t */
-#if defined( __WIN32__ ) || ( defined( __UNIX__ ) && !defined( __MACH__ ) )
- wprintf( L"%c", wCh );
+#if defined( __WIN32__ )
+ wprintf( L"%c", wCh[0] );
+#elif defined( __UNIX__ )
+ fprintf( output, "%s", outBuf );
#else
/* This could use some improvement */
#ifndef __MACH__
for( p = outBuf; *p != '\0'; p++ )
*p = asciiToEbcdic( *p );
- #endif /* OS X */
- fprintf( output, "%s", outBuf );
+ #endif
#endif /* OS-specific charset handling */
fPos += 2;
continue;
@@ -2150,7 +2152,14 @@
#endif /* __OS390__ */
long offset = 0;
int moreArgs = TRUE, doCheckOnly = FALSE;
-
+
+ setlocale(LC_ALL,
+#ifdef __WIN32__
+ ".OCP"
+#else
+ ""
+#endif
+);
#ifdef __OS390__
memset( pathPtr, '\0', sizeof( pathPtr ) );
getcwd( pathPtr, sizeof( pathPtr ) );
--- End Message ---
--- Begin Message ---
Source: dumpasn1
Source-Version: 20120521-1
We believe that the bug you reported is fixed in the latest version of
dumpasn1, which is due to be installed in the Debian FTP archive:
dumpasn1_20120521-1.debian.tar.gz
to main/d/dumpasn1/dumpasn1_20120521-1.debian.tar.gz
dumpasn1_20120521-1.dsc
to main/d/dumpasn1/dumpasn1_20120521-1.dsc
dumpasn1_20120521-1_amd64.deb
to main/d/dumpasn1/dumpasn1_20120521-1_amd64.deb
dumpasn1_20120521.orig.tar.gz
to main/d/dumpasn1/dumpasn1_20120521.orig.tar.gz
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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Mathieu Malaterre <[email protected]> (supplier of updated dumpasn1 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 13 Jun 2012 11:11:47 +0200
Source: dumpasn1
Binary: dumpasn1
Architecture: source amd64
Version: 20120521-1
Distribution: unstable
Urgency: low
Maintainer: Mathieu Malaterre <[email protected]>
Changed-By: Mathieu Malaterre <[email protected]>
Description:
dumpasn1 - ASN.1 object dump program
Closes: 348856 672709
Changes:
dumpasn1 (20120521-1) unstable; urgency=low
.
* New upstream release: 20120521
* Really use hardening flags.
Thanks to Simon Ruderich for patch. Closes: #672709
* Remove d/patches/bug429961.patch another fix has been applied upstream.
* Apply patch to get UNICODE printing working. Closes: #348856
* d/rules fix clean rule
Checksums-Sha1:
2d1c40e03822f638b2cb3b1a353e00742deda1b6 1881 dumpasn1_20120521-1.dsc
925dd68d3d90c3ebdbbd7717dc5f38da9ca48860 56962 dumpasn1_20120521.orig.tar.gz
f264874982727303ecfc944f8d8aabf41a05fbe5 6166 dumpasn1_20120521-1.debian.tar.gz
b727c1c5eb6e73cbe7f283f335fc4b38583174f7 51316 dumpasn1_20120521-1_amd64.deb
Checksums-Sha256:
cb55d37cdff44ba2717a791005dde8108d0b8c0c9b248117d58bda5e786f0635 1881
dumpasn1_20120521-1.dsc
2af8c03aef7783b72acbdb2447d6061ed1e481533fb78b9b6a9c446593c166ef 56962
dumpasn1_20120521.orig.tar.gz
942105dcfe033a5ff89f431bd8084577c54d9eae1c6ed513c85ef8e48549522d 6166
dumpasn1_20120521-1.debian.tar.gz
0c3783f9d64ed2639ca147bb2288164e43b321162ae901935227b0949b7c472e 51316
dumpasn1_20120521-1_amd64.deb
Files:
eb527ad1d45231dda9ce56e9d8639a12 1881 utils optional dumpasn1_20120521-1.dsc
4b9b371e7576c3166b0007815086e6ce 56962 utils optional
dumpasn1_20120521.orig.tar.gz
b5b63845b3c98c86830eda7b0330f4d8 6166 utils optional
dumpasn1_20120521-1.debian.tar.gz
45f1a1f8481aab404129f6693a808797 51316 utils optional
dumpasn1_20120521-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBAgAGBQJP2GA8AAoJEAFx4YKK4JNFpSkP/2Wi+6nB+kL7PVbqSIr5cFXd
/rjommNykjUmh01uRivxkmSgm2HfBRNz2Q6zw7b3wyz0WmQKAUh+VtGZ/XFMzgqL
mxXMHvgIa3JXdmqavKrJwT6dhJ7RrLy0zbyG0BvSw2JuzMbOluDm32sTg40G7loe
p5nkdcmGGxTzgzjwyL6mUUbl7+tc+u4u395vE2JAM+Tq6sr5cMmgbBSIsYH1W3HO
evs39G5JWy7Mjx3tCNc2sUWcqELCGAngYudbIaZ8mOq8lrrSD+oKjJYm0QfiqYV/
J1ESUk6IAJlHddgBsxO4RVGNgjHEaeTku+WyNF88VLDrzybmQuWFfMZSdF3w3sby
ynRnvB3ZxOp2WeHkBdV72RjFUVjyDTywXtatgTPxsa4+bR9NbrClBXHYMU/6jOo7
MJRz+45y9CrcCKWpL+qbJW/h6N3k0Pr+VtzEiN9lXY9zNjwrNVeTiYo2a7i08A2r
zYDEVEZTOoU1kUAZhXHGFkPY4gzoqiaY9fF+gByb/bsJteh6mo3h4YEcIRryF9nd
alRERp62gqeFcwQXWFFtYQiJ6qwFEvmuDWuYFc6WKcCAOwfc6TgBf7MXF3XIxdcv
XgNAeM1gXeJPzl1la6zaVvNyRRaGjhxgGycS59agsyXN6S2x5Hr1/NPAF74y+tjl
5nwwYrKpz7pt8VKUwYSe
=QhDF
-----END PGP SIGNATURE-----
--- End Message ---