Page 1 of 1

knoppix testdisk loadlocale failed

Posted: 01 Jul 2018, 08:21
by minipc
while attempting to repair the file system of a ddrescued copy of a corrupted external pc/intel hdd, using testdisk on a usb stick installed knoppix8.2 livecd with overlay, i got the following error

Code: Select all

testdisk: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted
couldn't find anything on the forum or the testdisk.pdf relating to knoppix and loadlocale, though searching the internet threw up a few hits for similar looking loadlocale error messages produced by other apps running on other linux flavors that suggests the problem may not be specific to testdisk. being new to knoppix, livecd's and testdisk, i'm not sure if this is the best place to raise the issue. but at least other potential users of testdisk on knoppix livecd might be interested in its existence.

as i couldn't even get the app to launch, i don't have a log file to attach, or much more information i can offer. sorry.

Re: knoppix testdisk loadlocale failed

Posted: 01 Jul 2018, 10:09
by cgrenier
In a Terminal, run "export LANG=C" before starting testdisk. Does it work better ?

Re: knoppix testdisk loadlocale failed

Posted: 01 Jul 2018, 22:04
by minipc
"export LANG=C" on its own didn't make any difference. but, on a hunch, after reading around, i also ran "export LC_ALL=C" and the combination seemed to do the trick.

many thanks for the pointer. hope this helps anyone else who follows.