Backport-1.8-3941

Backport #3941: `BUG: test_fortran_order_buffer fails on big endian architectures.`