11

Maybe I'm doing something wrong, but starting today I noticed SO stopped highlighting the c# and c++ tags for some unknown reason, even though they're selected as "watched" (see the right side):

screenshot

3
  • Nope, and it's not just that post, it's every single C++ and C# questions that get ignored
    – Blindy
    Commented May 20, 2020 at 15:49
  • stackoverflow.com/questions/61917250/… for example has only the C# tag and it still doesn't show highlighted. It's making me believe the tag parser dies because of the non-alpha-numeric tag text (# and ++ specifically).
    – Blindy
    Commented May 20, 2020 at 15:50
  • Ironically I just started listening to the SO podcast, from the beginning, and Joel just mentioned breaking the C++ tag every other day because the + is technically a space when URL encoded. Well good, we agree, it's broken -- do I need to do anything else? Like is there an "issues" list somewhere where I can file the bug? Or is this enough?
    – Blindy
    Commented May 20, 2020 at 15:56

1 Answer 1

9

We had a change go out that involved regenerating a bunch of javascript from typescript. Turned out that one of the typescript files was ANSI-encoded and that broke special character handling in tag names.

Fixing the file encoding gives us this fun .ts diff:

enter image description here

that becomes more clear in the .js version:

enter image description here

The fix is live in production. Thanks for the report!

2
  • This explains why the same was happening to .net as well, it's exactly those 3 characters between c++, c# and .net lol
    – Blindy
    Commented May 20, 2020 at 17:39
  • 3
    Oh dear. I would never be brave enough to dump characters outside of ANSI in my source code files. Use Unicode escape sequences.
    – Cody Gray Mod
    Commented May 20, 2020 at 19:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .