[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [sos-devel] Localized output of commands, a bug or a feature?

Hash: SHA1

On 06/08/2012 02:30 PM, Niels de Vos wrote:
> Hi all,
> I'm going through some details from a sosreport and a lot of the
> details are in Japanese. I don't speak the language, but can
> understand the important parts. However, I need to check the output
> on a system which I can understand.

Hi Niels,

Bug. Thanks for bringing this up. This (and a bunch of other
environment sanitization stuff) has been on my TODO list for a while.

> Example: $ cat sos_commands/filesys/parted_-s_.dev.sdb_print モデル:
> IBM ServeRAID M5015 (scsi) ディスク /dev/sdb: 4193GB セクタサイズ (論理/物理):
> 512B/512B パーティションテーブル: gpt
> 番号  開始    終了    サイズ  ファイルシステム  名前     フラグ 1    1049kB  4193GB
> 4193GB  xfs               primary

Yeah, very unhelpful for most users! We need to ensure that we set a
consistent locale where it matters as well as other important
environment variables (PATH e.g. - while we should be using absolute
paths everywhere we can't rely on external scripts not relying on
$PATH expansions).

> So, my question is, should sosreport export LANG=C or similar so
> that commands executed under sosreport will display their output in
> english?

I'm not sure whether to implement a general environment scrub during
script startup (which would then be inherited by forked processes) or
to re-work the code for running external programs in a way that allows
us to control the environment.


Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]