<openfpga-github>
[openfpga] azonenberg pushed 1 new commit to master: https://git.io/v7TK3
<openfpga-github>
openfpga/master 9303e0c Andrew Zonenberg: Fixed questionable cast in legacy code to shut up cppcheck. Shouldn't matter as this code isn't actually being built or used right now.
<azonenberg>
honestly i really do not think anyone will care if your patched kicad does not support ebcdic
<rqou>
no that's not what i'm doing this for
<rqou>
i'm trying to make sure i haven't forgotten any places where a locale-sensitive function was accidentally used
<rqou>
a good way to try and test that is a totally f*cked up locale like EBCDIC
<azonenberg>
Lol
<rqou>
except i just looked and apparently glibc's int->string conversion is hardcoded to the character set glibc was built for
<azonenberg>
so how about like utf16 arabic
<rqou>
afaict locales only affect isdigit
<azonenberg>
that should be odd enough to get noticed
<azonenberg>
if anything is totally busticated
<rqou>
ok, so what i'm fixing right now is mostly decimal separators
<rqou>
because strtod/%f are locale-sensitive
<rqou>
and these are used in file parsing
<rqou>
but also used by wx
<rqou>
and locales are process-global
<rqou>
cue mass hilarity and nasal demons all around
<rqou>
but various other bits of parsing use functions like strcasecmp
<rqou>
which is also affected by locales
<rqou>
ok, i just smoke-tested with a locale i manually constructed that's really f*cked up
<rqou>
smoke-testing seems to work; going to test a bit more extensively
<rqou>
azonenberg: so you know how turkish has i->İ and ı->I?
<rqou>
i constructed a locale where a->B
<azonenberg>
loool
<rqou>
and b->C
<rqou>
and so on
<azonenberg>
rot13-US
<azonenberg>
gogogoo
<rqou>
but this only affects toupper/tolower
<rqou>
which apparently isn't actually called that often
<rqou>
you know, f*ck it i'll just set breakpoints on strto[x] and strcasecmp to see if they get called
<azonenberg>
lol
<rqou>
wait i can just look at the symbols to see what gets imported
<azonenberg>
lol
<rqou>
hmm these are all pretty overcomplicated
<rqou>
i guess i'll try the traditional g
<rqou>
grep
<rqou>
ugh this is impossible to test
<rqou>
glibc's locale support doesn't work super well for f*cked up locales
<rqou>
and triggering the right codepaths in Kicad is "fun"
<rqou>
ugh and there's a bajillion different reimplementations of isdigit in kicad
<rqou>
also aargh i just discovered something else
<rqou>
kicad needs a locale-independent strftime
<rqou>
fucking kicad
<openfpga-github>
[openfpga] azonenberg pushed 1 new commit to master: https://git.io/v7TDF
<openfpga-github>
openfpga/master 96420f3 Andrew Zonenberg: Greenpak4BitstreamEntity / Greenpak4Flipflop: correct loading of netlists that use FF Q/nQ output
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined ##openfpga
scrts has quit [Ping timeout: 268 seconds]
scrts has joined ##openfpga
<pie_>
north korea, russia, trump, god help us
<pie_>
alternatively you may replace trump with usa
* pie_
goes back to watching some dude play horizon zero dawn
<rqou>
wait what?
* rqou
goes to check whatthefuckjusthappenedtoday.com
<azonenberg>
lol
<azonenberg>
i think everyone is watching that now
<rqou>
oh, sean spicer is gone
<azonenberg>
Among other things yes
<rqou>
in other geopolitical news, anybody notice that china and india are arguing about their border again?
<rqou>
apparently it's been five weeks of a standoff already
<rqou>
but nobody noticed because of russia and trump
<azonenberg>
lol surprise surprise
scrts has quit [Ping timeout: 260 seconds]
scrts has joined ##openfpga
<pie_>
rqou, nothing really i just heard some news today ive been avoiding catching up on
<pie_>
what is this trump jr business?
<pie_>
poor kid. or something.
* pie_
doesnt even know how old he is
<cr1901>
Trump Jr. ain't a kid. I assume you mean Barron?
<pie_>
no idea.ok so the clusterf. seems to be about dude meeting with a russian lawyer?
<cr1901>
That would be _indeed_ be Trump Jr, and he's near 40 now
<awygle>
yeah. met the lawyer to get dirt on hillary for the campaign. actively illegal. lots of reporters were like "Did this happen??" and Trump Jr was like "yeah totally, here's the email transcript on twitter"
<cr1901>
But Repubs are too busy killing poor people and exempting themselves from said policies that would kill poor ppl to care
<rqou>
solution: just don't be poor :P
<cr1901>
:/
<pie_>
might be illegal but it doesnt seem like something to make a big deal out of...
<cr1901>
pie_: Well, once upon a time, doing shit like that got a president to resign. It's more about the hypocrisy
<pie_>
oh.
<cr1901>
that the actual action
<cr1901>
than*
<pie_>
didnt know thats resignation material
<awygle>
the lawyer works for the russian government. it was essentially as though Putin was like "hey Donny I can install you as president, that cool?"
<pie_>
so i guess its a question of open hypocrist
<pie_>
*crisy
<pie_>
awygle, hm. putting it that way.
<pie_>
wait i didnt realize this was before the election. of course that would make more sense.
<awygle>
lots of muddy waters of course. and arguably not super relevant to open FPGA toolchains :P
<pie_>
yeah sorry for the offtopic :P
<cr1901>
Pretty sure we stopped enforcing on-topic about a week after this room opened
<pie_>
lol
<rqou>
pie_: how's politics in hungary going? :P
* cr1901
knows, because he was there XD
<pie_>
rqou, i havent a fucking clue. still refugees probably.
<cr1901>
pie_: didnt know thats resignation material <-- depends on who you ask. Look up Watergate if intersted
<pie_>
cr1901, i still dont get what thats about
<pie_>
well ill just look it up again. i probably just forgot.
<cr1901>
Very TL;DR: President hired ppl to break into a secure location containing confidential info on a political opponent. This isn't new, but he got caught.
<pie_>
hm watergate still seems a category above. though ties to kremlin is a prety good point.
rvense has quit [Remote host closed the connection]
* cr1901
puts on his "America Was Never Great" hat :)
<pie_>
cr1901, ;)
<pie_>
just gotta have good pr eh
<rqou>
are there any countries that are great?
<pie_>
"major global players were never great" hat :C
* pie_
brofists rqou melancholically
<rqou>
pie_: countries that have a bent crown are great :P :P
<pie_>
:'D
<cr1901>
rqou: Hmmm... maybe Switzerland? They manage to mind their own business ;)
digshadow has quit [Quit: Leaving.]
<pie_>
hm.
<pie_>
cr1901, re resignation material. i actually find it fucky how its the getting caught thats the issue
<pie_>
--> do bad shit but dont get caught
<pie_>
its worse than a pipe dream to expect otherwise but it seems almost more honest and less hypocritical to admit to it half the time
<pie_>
or idk....
<cr1901>
pie_: Well, to put it glibly, that's America for you
<pie_>
thats everybody though, no?
<pie_>
isnt that how this works everywhere?
<awygle>
whelp i have a 9-5 job again. that'll be fun.
<azonenberg>
awygle: Were you funemployed? Consulting? or what