this post was submitted on 15 Nov 2025
591 points (98.4% liked)

Funny

12330 readers
1282 users here now

General rules:

Exceptions may be made at the discretion of the mods.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] pftbest@sh.itjust.works 5 points 4 days ago (1 children)

I just made a CI pass to forbid non ASCII characters in the code. Found a lot of em dashes :(

[–] JackbyDev@programming.dev 4 points 4 days ago (1 children)

There are plenty of non ASCII characters that are okay in code. ñ comes to mind. There are also box drawing characters.

[–] pftbest@sh.itjust.works 3 points 4 days ago (1 children)

We don't use them in my project, I only added an exception for ©®™ and such. You can easily whitelist any character range you need. My command looks like this:

- (! grep -r -I -P '[^\x{00}-\x{7f}©®™°]' src)
[–] JackbyDev@programming.dev 3 points 3 days ago

This is goofy, I'm not gonna fail a build because somebody used some random Unicode character. That's draconian.