Skip to contentSkip to conversation

grub/grub-mkconfig export LANG=C

DISCUSSION Carles Pina i Estany 2 participants 2 messages Jan 24, 2009 – Feb 7, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

Doing some testing with gettext patch I see that grub-mkconfig is (usually) overriding LANG variable to LANG=c

Actually there is some relevant parts:
----------
# XXX: should this be deprecated at some point?
if [ "x${GRUB_TERMINAL}" != "x" ] ; then
GRUB_TERMINAL_INPUT="${GRUB_TERMINAL}"
GRUB_TERMINAL_OUTPUT="${GRUB_TERMINAL}"
fi

echo "x${grub_prefix}/gfxterm.mod"
case x${GRUB_TERMINAL_OUTPUT} in
x)
# If this platform supports gfxterm, try to use it.
if test -e ${grub_prefix}/gfxterm.mod ; then
GRUB_TERMINAL_OUTPUT=gfxterm
fi
;;
xconsole | xserial | xofconsole | xgfxterm) ;;
*) echo "Invalid output terminal \"${GRUB_TERMINAL_OUTPUT}\"" >&2 ; exit 1 ;;
esac

...

# does our terminal support utf-8 ?
case ${GRUB_TERMINAL_OUTPUT} in
  gfxterm) ;;
  *)
    # make sure all our children behave in conformance with ascii..
    export LANG=C
  ;;
esac
----------

Since it starts saying that maybe it's deprecated, do you think that now it's time to redo this part using another way? I think that, last months, has been some changes or patches about terminal output and I don't know if there is something pending in grub-mkconfig.

Thanks,

Signature · 2 lines
Carles Pina i Estany		GPG id: 0x17756391
	http://pinux.info
#1 lore raw
Quoted 11 lines · Carles Pina i Estany

case ${GRUB_TERMINAL_OUTPUT} in
gfxterm) ;;
*)

    # make sure all our children behave in conformance with ascii..
    export LANG=C
  ;;
esac
----------

Since it starts saying that maybe it's deprecated, do you think that now it's time to redo this part using another way?

Would be nice, but we can only do this when we start using unicode fonts by default. Otherwise the default setup would include lots of '?' characters.

(about switching to unicode fonts, see the mail I just sent about slowness)

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."