The Perils of Implementing Code from PDFs
summary
Copying the C-like pseudocode out of the h.265 spec into source files produces surprising failures: a Unicode hyphen ( U+2010 hyphen ) and curly quotes turn into GCC diagnostics like 'Error: stray '\342' in program' because GCC doesn't understand UTF-8 in identifiers or operators. The remedy is mechanical: normalize characters, replace nonbreaking spaces and em/en dashes, and then the decoder for closed captions in 4k H.265 compiles and works.
AI-written summary · about
related talks
52mNobody Can Program Correctly - Lessons From 20 Years of Debugging C++ Code
01h 12mWriting robust code
34mHidden in Plain Sight: Corner Case Defects
05mDetecting Programs That Rely on Undefined Behavior
01h 01mBack to Basics: Debugging in Cpp
59mHardening Your Code
52mFantastic C++ Bugs and How to Test Them
34mHidden in Plain Sight: Corner Case Defects
