Make dttest locale-independent

Fixes Bug 707546.