lshw shows a part of translation file instead of technical info

Bug #1878154 reported by Yuri Myasoedov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lshw (Ubuntu)
New
Low
Unassigned

Bug Description

I use Russian locale (ru_RU.UTF-8) and lshw shows in section "*-bank:1" a part of translation mo file instead of technical information.

$ sudo lshw -C memory
  *-firmware
       описание: BIOS
       производитель: HP
       физический ID: 1
       версия: Q85 Ver. 01.01.00
       date: 08/19/2017
       размер: 64KiB
       capacity: 15MiB
       возможности: pci pcmcia upgrade shadowing cdboot bootselect edd int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification netboot uefi
  *-memory
       описание: Системная память
       физический ID: 7
       слот: Системная плата или материнская плата
       размер: 4GiB
     *-bank:0
          описание: SO-DIMM DDR4 Синхронная Unbuffered (Unregistered) 2400 MHz (0,4 ns)
          продукт: HMA851S6AFR6N-UH
          производитель: Hynix/Hyundai
          физический ID: 0
          серийный №: 2A7E9431
          слот: Bottom-Slot 1(left)
          размер: 4GiB
          разрядность: 64 bits
          частота: 2400MHz (0.4ns)
     *-bank:1
          описание: Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2015-01-21 09:55+0000Last-Translator: Aleksey Kabanov <Unknown>Language-Team: Russian <email address hidden>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2019-04-12 08:46+0000X-Generator: Launchpad (build 18920)Language: ru_RUProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2015-01-21 09:55+0000Last-Translator: Aleksey Kabanov <Unknown>Language-Team: Russian <email address hidden>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2019-04-12 08:46+0000X-Generator: Launchpad (build 18920)Language: ru_RU [пусто]
          физический ID: 1
          слот: Bottom-Slot 2(right)
  *-cache:0
       описание: L1 кэш
       физический ID: d
       слот: L1 Cache
       размер: 256KiB
       capacity: 256KiB
       возможности: synchronous internal write-back unified
       конфигурация: level=1

Tags: focal l10n
Revision history for this message
Paul White (paulw2u) wrote :

Confirming issue with Ubuntu 20.04 although different erroneous text due to using en_GB.UTF-8 locale.

tags: added: focal
Changed in lshw (Ubuntu):
status: New → Confirmed
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, what's the output if you use LC_ALL=C ?

Changed in lshw (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Yuri Myasoedov (ymyasoedov) wrote :

$ sudo LC_ALL=C lshw -C memory
  *-firmware
       description: BIOS
       vendor: HP
       physical id: 1
       version: Q85 Ver. 01.01.00
       date: 08/19/2017
       size: 64KiB
       capacity: 15MiB
       capabilities: pci pcmcia upgrade shadowing cdboot bootselect edd int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification netboot uefi
  *-memory
       description: System Memory
       physical id: 7
       slot: System board or motherboard
       size: 4GiB
     *-bank:0
          description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
          product: HMA851S6AFR6N-UH
          vendor: Hynix/Hyundai
          physical id: 0
          serial: 2A7E9431
          slot: Bottom-Slot 1(left)
          size: 4GiB
          width: 64 bits
          clock: 2400MHz (0.4ns)
     *-bank:1
          description: [empty]
          physical id: 1
          slot: Bottom-Slot 2(right)
  *-cache:0
       description: L1 cache
       physical id: d
       slot: L1 Cache
       size: 256KiB
       capacity: 256KiB
       capabilities: synchronous internal write-back unified
       configuration: level=1

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, that's the issue
' description: [empty]'

The 'empty' value is buggy, also calling gettext on an empty string returns the header information (which is what is displayed in the initial report)

Could you maybe report it upstream on https://ezix.org/project/newticket?component=lshw ?

Changed in lshw (Ubuntu):
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

It could also be the same as https://ezix.org/project/ticket/700

Revision history for this message
Yuri Myasoedov (ymyasoedov) wrote :

I'm trying to report about this problem to upstream but can't pass captcha checking. Always get an error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.