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

**URL:** <https://ziggit.dev/t/every-bug-quirk-of-the-windows-resource-compiler-rc-exe-probably/6342>\
**Category:** Showcase\
**Created:** [October 11, 2024, 10:45pm UTC](https://ziggit.dev/t/every-bug-quirk-of-the-windows-resource-compiler-rc-exe-probably/6342 "2024-10-11T22:45:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![squeek502](https://ziggit.dev/user_avatar/ziggit.dev/squeek502/32/409_2.png) [@squeek502](https://ziggit.dev/u/squeek502)\
**Post date:** [October 11, 2024, 10:45pm UTC](https://ziggit.dev/t/every-bug-quirk-of-the-windows-resource-compiler-rc-exe-probably/6342/1 "2024-10-11T22:45:28Z")

</div>

> **[Every bug/quirk of the Windows resource compiler (rc.exe), probably -...](https://www.ryanliptak.com/blog/every-rc-exe-bug-quirk-probably/)**
>
> Fuzz testing decades-old software can turn up some curious behaviors

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.

---

<div class="post-metadata">

**Author:** ![pachde](https://ziggit.dev/user_avatar/ziggit.dev/pachde/32/2485_2.png) [@pachde](https://ziggit.dev/u/pachde)\
**Post date:** [October 17, 2024, 8:03pm UTC](https://ziggit.dev/t/every-bug-quirk-of-the-windows-resource-compiler-rc-exe-probably/6342/2 "2024-10-17T20:03:59Z")

</div>

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.
