Proposed fix is attached; alternate approach would be to call getopt under LC_ALL, but the --version parsing seems hackish when -T is available.
Proposed fix is attached; alternate approach would be to call getopt under LC_ALL, but the --version parsing seems hackish when -T is available.