Every bug/quirk of the Windows resource compiler (rc.exe), probably

Not entirely Zig-related, but has to do with the resource compiler that is included with Zig and the weird behaviors it supports (or intentionally doesn’t support)

To pique your interest, here’s the intro:

  • 7 NOT NOT 4 NOT 2 NOT NOT 1 is a valid expression
  • ००० is a number that gets parsed into the decimal value 65130
  • A < 1 MiB icon file can get compiled into 127 TiB of data

The above is just a small sampling of a few of the strange behaviors of the Windows RC compiler (rc.exe). All of the above bugs/quirks, and many, many more, will be detailed and explained (to the best of my ability) in this post.

18 Likes

For a long time in the early days, tools like this didn’t have an owner (that is, an individual or team person accountable for the code/tool), and any random dev would hack on it as they had a need. Pretty much anything that didn’t break the Windows build was fine - nobody would notice.

2 Likes