Comment 30 for bug 42264

Revision history for this message
Jamie Lokier (jamie-shareable) wrote : Re: [Bug 42264] Re: locale dependant segfault for dd

Romano Giannetti wrote:
> Notice that the dd *did* work, that is, the output file is correct. It's
> just a segfault in the final message (that can create confusion in
> callers, yes, but dd works just ok).

It breaks build scripts / Makefiles, as the exit code is non-zero.
That's the main problem I've had.

Of course it's possible to workaround by modifying those scripts to
ignore the exit code. But it's just as easy to set LANG=C or (as I
have done) to write a /usr/local/bin/dd script containing

    #!/bin/sh
    export LANG=C
    exec /bin/dd "$@"'

-- Jamie