4 ms·
> A word is a maximal string of characters delimited by spaces, tabs or newlines. And then the actual code explicitly filters out and ignores every character l
by Joker_vD 2y ago
> A word is a maximal string of characters delimited by spaces, tabs or newlines.
And then the actual code explicitly filters out and ignores every character larger than 0x7F. Just why.
- jolmg 2y agoProbably because they're not characters. They're just bytes undefined by ASCII.
- ivan_gammel 2y agoBecause they thought that a word is something said in a human language that they can understand.
- Joker_vD 2y agoMi ne pensas ke lingvoj kiuj usas ekskluzive la basan latinan alfabeton estas komprepeneblaj per si mem.
- actionfromafar 2y agoZe riform iz komplit.
- Joker_vD 2y agoThe [z] and [ð] are phonemically different in English, just as [i] and [i:] are, so it'd actually be "Ðe riform is komplijt". American rhotacism prevents us from spelling it "rifoom" as would be proper, unfortunately.
- luismedel 2y agoCool how my native language is Spanish and I can almost-understand 80% of Esperanto.
- Tor3 2y agoASCII is 7 bits (the eight bit would be parity), so that makes perfect sense, in an ASCII world.
- Joker_vD 2y agoSo the character e.g. "B" would have this parity bit set and therefore should be filtered out and not count as a letter, in the ASCII world?
- aap_ 2y agoThere are only 7 bits in ASCII. An 8th can be used for parity when transmitting data but a regular program will never see it. Anything above 0x7F is simply not a character.
- epcoa 2y agoWhat in the hell are you going on about? B is 0x46 which is < 0x7F.
- Joker_vD 2y agoI am going about the parity bit. 0x46 has odd number of bits set (three, to be precise) so for the parity to check out (that is, the number of bits set has to be even), a parity bit needs to be set and the resulting encoding has to be 0xC6, with four bits set.
- Tor3 2y agoThe parity bit is not part of the character. It's external, an error detecting device. To read ASCII you always look at bits 6..0, seven bits. You don't filter away the character because it has the parity bit set, you filter off the parity bit (whether it's set or not).
- icedchai 2y agoAssuming parity is enabled, the parity check is done at a lower level (serial port, TTY driver, etc.) and you'll never see it from the application. I used to mess around with serial ports and terminals a ton in my youth.