GNU bug report logs - #33999
CP437: Invalid Argument on init

Previous Next

Package: guix;

Reported by: Bryan Ferris <saffsnail <at> gmail.com>

Date: Sun, 6 Jan 2019 19:39:01 UTC

Severity: normal

Full log


Message #20 received at 33999 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Bryan Ferris <saffsnail <at> gmail.com>
Cc: 33999 <at> debbugs.gnu.org
Subject: Re: bug#33999: CP437: Invalid Argument on init
Date: Thu, 10 Jan 2019 19:21:07 +0100
[Message part 1 (text/plain, inline)]
Also, if you want, please try the following program on the booted guix system:

#include <stdio.h>
#include <locale.h>
#include <iconv.h>
#include <langinfo.h>

static iconv_t iconv_init_codepage(int codepage)
{
    iconv_t result;
    char codepage_name[16];
    snprintf(codepage_name, sizeof(codepage_name), "CP%d", codepage);
    result = iconv_open(nl_langinfo(CODESET), codepage_name);
    if (result == (iconv_t) - 1) {
        printf("FOO\n");
        perror(codepage_name);
        printf("BAR\n");
    }
    return result;
}

int main() {
        setlocale(LC_ALL, "");
        iconv_init_codepage(437);
        return 0;
}

You'd have to put the above text into a file called "a.c", then invoke

guix package -i gcc-toolchain

Then invoke

gcc -o a a.c

Then invoke

./a

I suspect it will also fail with the same error message.

After that, please invoke

iconv -l |grep -i cp437

It will probably either return nothing or even fail with an error message.
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 6 years and 138 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.