On 2026-04-19 02:02, [email protected] wrote:
This seems to exist in macOS as well.

Which macOS version? I don't observe the problem with that little test program when I run on macOS 26.4.1, the current macOS version. This is on cfarm104.cfarm.net.

For convenience here's that test program again. On cfarm104 it outputs "towupper (0x01C5) = 0x01C4" which is correct.

#include <locale.h>
#include <wctype.h>
#include <stdio.h>

int
main ()
{
  if (!setlocale (LC_ALL, "en_US.UTF-8"))
    return perror ("setlocale"), 1;

  wint_t c = 0x01C5;
  wint_t w = towupper (c);
  printf ("towupper (0x01C5) = 0x%04X\n", (int) w);
}




Reply via email to