Al2O3 has quit [Remote host closed the connection]
Al2O3 has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
eddof13 has joined #ruby
szkl has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 276 seconds]
araujo has quit [Ping timeout: 255 seconds]
roadie has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
RetroPunk has quit [Quit: cya]
RetroPunk has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Remote host closed the connection]
jenrzzz has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
szkl has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
fercell_ has joined #ruby
fercell has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
m_antis has quit [Ping timeout: 240 seconds]
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
caedmon has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
caedmon has quit [Ping timeout: 255 seconds]
caedmon has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
caedmon has quit [Client Quit]
caedmon has joined #ruby
jenrzzz has joined #ruby
caedmon has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
smp has quit [Ping timeout: 256 seconds]
smp has joined #ruby
caedmon has joined #ruby
jenrzzz has joined #ruby
fercell_ has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
caedmon has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
miah has quit [Ping timeout: 256 seconds]
szkl has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
dviola has quit [Quit: WeeChat 4.1.2]
grenierm has joined #ruby
eddof13 has quit [Quit: eddof13]
constxqt_ has quit [Ping timeout: 264 seconds]
xdminsy has quit [Read error: Connection reset by peer]
brokkoli_origina has joined #ruby
brokkoli_origin has quit [Ping timeout: 264 seconds]
constxqt_ has joined #ruby
Vonter has quit [Ping timeout: 240 seconds]
constxqt_ has quit [Ping timeout: 240 seconds]
Vonter has joined #ruby
constxqt_ has joined #ruby
constxqt_ has quit [Ping timeout: 260 seconds]
miah has joined #ruby
constxqt_ has joined #ruby
constxqt_ has quit [Ping timeout: 256 seconds]
otisolsen70 has joined #ruby
<sandra>
Weird, the patch from that xmpp4r issue 13 (PR #15) was already applied here but I still get the same issue. Gonna have to dig deeper
constxqt_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
constxqt_ has quit [Ping timeout: 256 seconds]
ultralan has joined #ruby
ultralan has quit [Remote host closed the connection]
<sandra>
OK, so a Barbra Streisand solution of just doing rv = pattern.match(@buffer.force_encoding ::Encoding::UTF_8) inside of my local copy of REXML itself works. That's good, that's a fallback approach for tonight which is when I need this.
<sandra>
I still have some time to try to troubleshoot a bit and figure out where things are really going wrong.
jenrzzz has joined #ruby
constxqt_ has joined #ruby
constxqt_ has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
<sandra>
Oh, OK, turns out that REXML does its own encoding detection and overriding, with mediocre success
jenrzzz has joined #ruby
grenierm has quit [Ping timeout: 250 seconds]
rdsm has quit [Ping timeout: 256 seconds]
constxqt_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
mretka has quit [Ping timeout: 256 seconds]
Vonter has quit [Ping timeout: 240 seconds]
Vonter has joined #ruby
constxqt_ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
constxqt_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
constxqt_ has quit [Ping timeout: 256 seconds]
Tempesta has quit [Quit: See ya!]
jenrzzz has joined #ruby
rdsm has joined #ruby
mretka has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
___nick___ has joined #ruby
dalan03822833 has joined #ruby
jenrzzz has joined #ruby
araujo has joined #ruby
___nick___ has quit [Client Quit]
constxqt_ has joined #ruby
___nick___ has joined #ruby
constxqt_ has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
<sandra>
Uh yeah I see now that in that 2013 thread someone found the same workaround
jenrzzz has joined #ruby
constxqt_ has joined #ruby
constxqt_ has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
<Guest808>
anyone have experience working with pulseaudio or pipewire in ruby?
jenrzzz has joined #ruby
constxqt_ has joined #ruby
fercell has joined #ruby
Tempesta has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
graywolf has joined #ruby
jenrzzz has joined #ruby
Paris has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
Paris has quit [Quit: quit]
m_antis has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
otisolsen70 has quit [Quit: Leaving]
<ox1eef_>
sandra: Encoding.internal_encoding / Encoding.external_encoding might help for IO-related encodings.
<sandra>
ox1eef_: Yeah, that's probably what's missing in that SSLSocketUTF8 wrapper. Gonna try adding that, thank you
jenrzzz has quit [Ping timeout: 264 seconds]
<sandra>
ox1eef_: That wasn't quite it.
<sandra>
The problem is that there's a bug in OpenSSL::SSL::SSLSocket where it returns the wrong encoding. Lines that are pure ASCII are returned as UTF-8 while lines that do have UTF-8 characters are returned as "ASCII-8BIT". (I know it's ten years later but it's still happening.)
<sandra>
That force_encoding method doesn't have the twin internal/external encoding arguments that file descriptors do, because it's being run on a string directly.
<sandra>
The xmpp4r team made an SSLSocketUTF8 subclass to SSLSocket that just wraps it and runs force_encoding ::Encoding::UTF_8 on all the sysread results.
<sandra>
The problem is that it's not enough apparently because REXML is still borking
Guest808 has quit [Ping timeout: 260 seconds]
<sandra>
I guess not all of the reads in match use that wrapped socket
jenrzzz has joined #ruby
xlymian has joined #ruby
sagax has joined #ruby
edr has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<ox1eef_>
sandra: There's the source file encoding (eg the encoding of strings you create in a script), and then there's the internal / external encoding. The internal / external encoding relates to strings coming from, and written to an IO.
<ox1eef_>
There might be a mismatch between the two, if I recall correctly IO is treated as ASCII-8BIT by default - in other words, no encoding.
<sandra>
Yeah, I've tried to set the encoding on the IO object instance itself and that's where I could use the external/internal dual arguments, but it didn't work. Something is extraordinarily weird about that SSLSocket
<ox1eef_>
Did you try to set Encoding.(external|internal)_encoding - that should be like a global encoding for all IO. You might want to inspect their defaults (theyre both a getter, and setter)
graywolf has quit [Quit: WeeChat 4.0.4]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<sandra>
ox1eef_: what, in my main file? Like
<sandra>
That gives a NoMethodError
<sandra>
puts Encoding.external_encoding
jenrzzz has joined #ruby
conjurus_rex has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
<ox1eef_>
sandra: Sorry. Looks like it changed, or I was wrong to begin with. Try: Encoding.default_internal, Encoding.default_external.
eddof13 has joined #ruby
<ox1eef_>
For me Encoding.default_external is UTF-8, and Encoding.default_internal is nil.
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
barak has joined #ruby
eddof13 has quit [Quit: eddof13]
<sandra>
ox1eef_: Thank you! Same here, so I set the default interal to UTF-8 but it didn't help
<sandra>
Gonna stick with the hack in match for today
<ox1eef_>
Fair enough. I'm not really well versed in encoding stuff. Someone else might chime in later.
<ox1eef_>
Maybe you could try setting internal / external to ASCII-8BIT. That might help. That's treated like a string of bytes that you could encode properly later.
sagax has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
barak has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
conjurus_rex has quit [Remote host closed the connection]
conjurus_rex has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
eddof13 has joined #ruby
jenrzzz has joined #ruby
roadie has joined #ruby
<desnudopenguino>
i'm trying to set up jekyll on my FreeBSD machine, but ran into this isuse: https://github.com/jekyll/jekyll/issues/9462 i don't know how to pin a dependency as suggested in the last message on the issue, and searching the internet just resulted in setting the version in the Gemfile for a project, but since i'm using it as a gem, i'm not quite sure how to do that.
<adam12>
desnudopenguino: IMHO, use a Gemfile.
<desnudopenguino>
adam12: how exactly would i do that? i'm trying to install the jekyll gem via cli `gem install jekyll`
conjurus_rex has quit [Remote host closed the connection]