unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Bryan Ferris <saffsnail@gmail.com>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: 33999@debbugs.gnu.org
Subject: bug#33999: CP437: Invalid Argument on init
Date: Wed, 16 Jan 2019 07:43:30 -0800	[thread overview]
Message-ID: <CABkR=SVmKRMH+D9zAAvJh6CWODE0dLu9J==9fqXa3cvyGJevMg@mail.gmail.com> (raw)
In-Reply-To: <20190110192107.454e2cb8@scratchpost.org>

[-- Attachment #1: Type: text/plain, Size: 3225 bytes --]

Hey Danny,

Sorry for the delay in response. I saw no behavior change until I added the
(mount? #f) line. This fixed a number of services, but d-bus fails to
start. I encounter further issues including X Server failing to start and
the inability to log in (when I type in a valid username it immediately
fails 3 times and prints the standard message... I don't have password
hashes in my config, but IIRC last time I installed guix I was able to log
in without setting a password either imperatively or declaratively). Due to
the latter issue I was unable to test the program you posted, but it sounds
like Ludovic was able to describe what would happen if I had been able to?
I assume the non-d-bus errors are related to the lack of d-bus.

I uploaded a new video of my startup at
https://drive.google.com/file/d/1bVdiCM1BKAmY-1y1XydI4ol7BCCkQ2Xk/view?usp=drivesdk
It's ~50s long, but seconds 20-45 are the system retrying d-bus a number of
times.

On Thu, Jan 10, 2019 at 10:21 AM Danny Milosavljevic <dannym@scratchpost.org>
wrote:

> 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.
>

On Thu, Jan 10, 2019 at 10:21 AM Danny Milosavljevic <dannym@scratchpost.org>
wrote:

> 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.
>

[-- Attachment #2: Type: text/html, Size: 4545 bytes --]

  reply	other threads:[~2019-01-16 15:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-06 19:34 bug#33999: CP437: Invalid Argument on init Bryan Ferris
2019-01-09 19:08 ` Danny Milosavljevic
2019-01-09 21:18   ` Bryan Ferris
     [not found]     ` <CABkR=SUyCV7d6sR1Zyy4Aj4Cp5raS_Tn-Akji3k0fQPeneErFg@mail.gmail.com>
2019-01-10 15:15       ` Bryan Ferris
2019-01-10 17:59         ` Danny Milosavljevic
2019-01-10 20:37           ` Bryan Ferris
2019-01-16 11:00   ` Ludovic Courtès
2019-01-18 22:59     ` Danny Milosavljevic
2019-01-19 10:19       ` Ludovic Courtès
2019-01-21  0:40       ` Danny Milosavljevic
2019-01-21  8:41         ` Danny Milosavljevic
2019-01-21  9:50         ` Ludovic Courtès
2019-01-21 10:16           ` Danny Milosavljevic
2019-01-21 10:51             ` Ludovic Courtès
2019-01-23 15:42             ` Bryan Ferris
2019-01-26 17:32               ` Bryan Ferris
2019-01-10 18:21 ` Danny Milosavljevic
2019-01-16 15:43   ` Bryan Ferris [this message]
2019-01-18 19:00     ` Bryan Ferris
2019-01-18 22:48       ` Danny Milosavljevic
     [not found]         ` <CABkR=SWtHUA+G50fR_QiU-tGU6TatQ7wnKWW+n6LdFexSYJZRA@mail.gmail.com>
     [not found]           ` <20190120031949.2bb81997@scratchpost.org>
2019-01-20 14:34             ` Bryan Ferris
2019-01-20 22:48               ` Danny Milosavljevic
2019-01-20 22:49                 ` Danny Milosavljevic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABkR=SVmKRMH+D9zAAvJh6CWODE0dLu9J==9fqXa3cvyGJevMg@mail.gmail.com' \
    --to=saffsnail@gmail.com \
    --cc=33999@debbugs.gnu.org \
    --cc=dannym@scratchpost.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).