another good one to sneak in there... thai zero-width space: U+200B
cant see it, nothing reads it, and it makes everything error. : D
another good one to sneak in there... thai zero-width space: U+200B
cant see it, nothing reads it, and it makes everything error. : D
The right to left mark (U+2000F) can also be fun.
Hmm .. we should start collecting these.
Anyone know of an existing list?
Came here to say fuck the zero width space. I spent 90 hours in the depths of solr looking for this fucker who brought down our entire search index.
I deal with shy hyphens a lot. They don’t display unless there’s a line break, so they get copied from various word docs or websites and end up in a database somewhere waiting to piss me off.
Yup
I'm guessing that they pasted code from inside Microsoft Word.
No. CMS updated to support new character set while solr did not. Not enough sanitization.
Before I went to the comments I wished no one mentioned that. As a DBA I fucking hate you...
i am an SDET. this character destroys DBs... i am sorry :(
Pretty much any ide will spot that. Maybe you can use it to teach your colleagues not to use a plain text editor.
I'm gonna need the vi guy to teach me how to get this functionality in nvim pls--don't make me leave
You can pry my vim and nano from my cold, dead hands!
^(I use an ide sometimes)^
In VSCode (yeah yeah MS bad, I have to use it for work) it puts a yellow box around the charcater, which I don't immediately recognize the meaning of and highlights the line as "identifier "blah;" is undefined". It's not like your gunna spend all day on it, but that could waste a couple minutes if the dev wasn't paying close attention, which is "fun prank" territory.
Can you choose to use VSCodium instead? It's practically identical, but isn't controlled by MS.
The reason it's de facto mandatory is due to some in house extensions, assuming they work with this I could, but I also don't particularly care about my privacy on a work machine. But I will be checking this out for my personal stuff!
The extensions should work still. It even still integrates with the same extention marketplace. It's the same software, just the open source part without the MS stuff —which honestly, I have and do use both and I don't know what the difference is.
It's definitely worth checking out. If it doesn't work for you then still nothing is lost except a small amount of time, but I'm willing to bet it does.
I mean sure, but it'll still likely leave 'em scratching their heads for a while before they go "I guess I just.. replace the semicolon..?"
With the "wonderful" tooling at work, we use Skype for Business. Naturally, that is not the primary place to send around code and configs, but a 1-liner or 2-liner happens.
You can't believe the nonsense it does when you try to copy & paste it. Spaces get turned into non-breaking spaces etc. Looks completely normal when pasted directly into vim on a console, but will give "odd" error messages.
Skype still exists?
At this point, even Microsoft wants them to stop using it, but they are stubborn and try to keep it running until they turn off the lights the hard way.
Officially, no.
fr*cking rust ruining the fun
You can't err out rust.
Okay fuck you op
Any half-decent editor/IDE/command line tool will scream at you about this; plus there's version control which should help you spot it as well.
IDE users pretending compilers don't exist.
$ guix shell gcc
[env]$ g++ test.cpp
test.cpp:4:16: warning: `0;' is not in NFC [-Wnormalized=]
4 | return 0<U+037E>
| ^~~~~~~~~
test.cpp: In function ‘int main()’:
test.cpp:4:16: error: unable to find numeric literal operator ‘operator"";’
test.cpp:4:18: error: expected ‘;’ before ‘}’ token
4 | return 0;
| ^
| ;
5 | }
| ~
Look ma, no IDE! 😸
chill, satan.
;
;
Tried to figure out which was which by googling, but it seems they are both read as semi colon, however you can see the difference in the characters. Wild
I don't see a problem
#include <iostream>
#define ; ;;
int main(){
std::cout << ";\n";
}
Whoa the font on the Lemmy web UI actually renders them differently!
There is no wise way to use that information.
But the foolish ones could be entertaining.
Post funny things about programming here! (Or just rant about your favourite programming language.)