The work of an AI builder · December 2, 2026
It compiled. The tests passed. That didn't mean it worked.
BulletProof FTP Server is my product, and I’ve worked on it for years. In late October I used Cursor’s agents to bring full Unicode support to it. The lesson I keep coming back to: code that compiles and passes its tests hasn’t necessarily worked.
An FTP server does byte-level work on network buffers. Much of BulletProof was written when a character was one byte, in ANSI and ASCII strings. That assumption bled through the code. Lengths were byte counts, but nothing said so. The byte math was never called out.
So I couldn’t just switch everything to Unicode. A Unicode string’s length counts characters, not bytes. Change a buffer’s type and the code still compiles. A test with plain English filenames still passes. The byte math is quietly wrong.
When I audited the code, the old 8-bit string type showed up more than 2,000 times. A filename that didn’t fit the old code page became a question mark, which isn’t even a legal Windows filename.
So I drew a line. Text that people read became Unicode. Buffers that go over the wire stayed bytes, and I made that explicit, so a length that means bytes says so. Cursor’s agents traced the code and wrote the patches. I decided where the line went and what a test had to prove: names in Japanese, Mandarin, Spanish and mixed scripts, followed through upload, listing, rename and download over every protocol the server speaks.
Passing tests showed the change worked in the cases I tested. Deciding which cases count was still my job.
First posted on LinkedIn.
