Wip 10128 giant

Backport of critical fix for exporting to stdout.