Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.