You are not logged in.

#1 2014-12-20 09:43:26

iaw4
Member
Registered: 2014-11-28
Posts: 46

[SOLVED] mkcpioinit -L 'column read failed' for some locales (+warns)

I am a new refugee from ubuntu.  new arch installation.  I am learning how to build my own init script.

the arch wiki for mkinitcpio (https://wiki.archlinux.org/index.php/Mkinitcpio) says

    mkinitcpio -L

is used to inspect hooks.  on my system, it tells me

    ==> Available hooks
    column: read failed: Invalid or Incomplete multibyte or wide character

    # this hook is deprecated in favor of block
    # this hook is deprecated in favor of keyboard

being new as I am and as my install is, is this a doc bug inor a mkinitcpio bug?


Answer is below.  make sure your locale exists and is utf-8.  a misspelling in the locale can cause this.

/iaw

Last edited by iaw4 (2014-12-20 10:59:46)

Offline

#2 2014-12-20 09:55:08

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] mkcpioinit -L 'column read failed' for some locales (+warns)

You'll need an UTF-8 language (e.g. en_US.utf8), it doesn't work with ANSI C or POSIX locales.

Last edited by progandy (2014-12-20 09:55:44)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2014-12-20 10:57:32

iaw4
Member
Registered: 2014-11-28
Posts: 46

Re: [SOLVED] mkcpioinit -L 'column read failed' for some locales (+warns)

excellent.  I had made the mistake of setting my locale to en_us.UTF-8 , instead of en_US.UTF-8 .  so, this error helped me prevent further disasters down the road.

SUGGESTIONS:

* a warning message that locale-gen generates if the file cannot be found or if it is an obvious mis-spelling.

* a better error for mkinitcpio that explains that the locale is not currently UTF-8.

thank you.

regards,

/iaw

Offline

#4 2014-12-20 18:30:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] mkcpioinit -L 'column read failed' for some locales (+warns)

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-01-12 10:35:15

piwwo
Member
Registered: 2013-05-15
Posts: 35

Re: [SOLVED] mkcpioinit -L 'column read failed' for some locales (+warns)

I have the same issue but setting LANG doesn't help

sh-4.3# echo $LANG
en_US.UTF-8

sh-4.3# mkinitcpio -L
==> Available hooks
column: read failed: Invalid or incomplete multibyte or wide character

Offline

#6 2015-01-12 14:02:17

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] mkcpioinit -L 'column read failed' for some locales (+warns)

piwwo wrote:

I have the same issue but setting LANG doesn't help

sh-4.3# echo $LANG
en_US.UTF-8

sh-4.3# mkinitcpio -L
==> Available hooks
column: read failed: Invalid or incomplete multibyte or wide character

No, you have the same symptoms. You have a different problem -- likely that en_US.UTF-8 isn't actually generated. I'm guessing that if you run the command 'locale', you'll see errors relating to the locale not being found.

Offline

Board footer

Powered by FluxBB