ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput | register your nick to speak
Serus has quit [Quit: brb]
Serus has joined #wayland
abeltramo has quit [Ping timeout: 480 seconds]
co1umbarius has joined #wayland
columbarius has quit [Ping timeout: 480 seconds]
molinari has quit [Ping timeout: 480 seconds]
abeltramo has joined #wayland
BPCZ has quit [Ping timeout: 480 seconds]
<i509vcb>
From a practical standpoint, it is reasonable to assume ALL wayland xml protocol specifications that anyone really cares about will be encoded in UTF-8?
vyryls has joined #wayland
julio7359 has quit [Ping timeout: 480 seconds]
ahartmetz has quit [Quit: Konversation terminated!]
julio7359 has joined #wayland
sozuba has joined #wayland
BPCZ has joined #wayland
vyryls has quit [Quit: WeeChat 3.8]
nerdopolis has quit [Ping timeout: 480 seconds]
kts has joined #wayland
julio7359 has quit [Ping timeout: 480 seconds]
Company has quit [Quit: Leaving]
thevar1able has quit [Remote host closed the connection]
thevar1able has joined #wayland
thevar1able has quit [Remote host closed the connection]
thevar1able has joined #wayland
junaid has joined #wayland
junaid_ has joined #wayland
dcz_ has joined #wayland
caveman has quit [Remote host closed the connection]
caveman has joined #wayland
<jadahl>
i509vcb: all protocol files in w-p start with <?xml version="1.0" encoding="UTF-8"?> so yes. the DTD verification in wayland-scanner also assumes it's utf8
junaid has quit [Ping timeout: 480 seconds]
junaid_ has quit [Ping timeout: 480 seconds]
<i509vcb>
I did test and UTF-16 appears to generate just fine. Shift-JIS just explodes and wayland-scanner core dumps
<i509vcb>
(event with --strict)
<i509vcb>
s/event/even
junaid has joined #wayland
<i509vcb>
Hmm nope just made a bad file for the Shift-JIS testing
<i509vcb>
so wayland-scanner can generate with Shift-JIS encoding.
<i509vcb>
Yes this is probably unreasonable to test
junaid_ has joined #wayland
rv1sr has joined #wayland
kts has quit [Quit: Konversation terminated!]
junaid_ has quit [Ping timeout: 480 seconds]
junaid has quit [Ping timeout: 480 seconds]
hardening has joined #wayland
junaid has joined #wayland
junaid_ has joined #wayland
i509vcb has quit [Quit: Connection closed for inactivity]
junaid has quit [Ping timeout: 480 seconds]
junaid_ has quit [Ping timeout: 480 seconds]
junaid has joined #wayland
junaid_ has joined #wayland
jmdaemon has quit [Ping timeout: 480 seconds]
<dottedmag>
Why not decree the encoding and forget about headaches? What would be the use-case for Shift-JIS-encoded protocol specifications?
ahartmetz has joined #wayland
agd5f has joined #wayland
agd5f_ has quit [Ping timeout: 480 seconds]
nerdopolis has joined #wayland
junaid has quit [Ping timeout: 480 seconds]
junaid_ has quit [Ping timeout: 480 seconds]
Szadek has quit [Ping timeout: 480 seconds]
Szadek has joined #wayland
Szadek has quit [Ping timeout: 480 seconds]
Szadek has joined #wayland
ahartmetz has quit [Ping timeout: 480 seconds]
molinari has joined #wayland
kts has joined #wayland
MrCooper has quit [Remote host closed the connection]
MrCooper has joined #wayland
rasterman has joined #wayland
eroc1990 has quit [Remote host closed the connection]
eroc1990 has joined #wayland
Company has joined #wayland
molinari has quit [Read error: Connection reset by peer]
kts has quit [Quit: Konversation terminated!]
agd5f_ has joined #wayland
agd5f has quit [Ping timeout: 480 seconds]
sozuba has quit [Ping timeout: 480 seconds]
junaid has joined #wayland
i509vcb has joined #wayland
junaid_ has joined #wayland
<i509vcb>
I'd definitely prefer if wayland-scanner just mandated UTF-8 for protocol xml files, but the scanner accepts UTF-16 and Shift-JIS xmls and runs fine so there would be a very theoretical regression unless we decide to not care there.
<i509vcb>
Context here for this whole encoding discussion was me turning wayland-rs' wayland-scanner into a library and realizing that quick-xml just assumes a stream of bytes instead of UTF-8 strings. So there are a lot of String::from_utf8 conversion around the place.
rasterman has quit [Quit: Gettin' stinky!]
ManMower has quit [Quit: leaving]
bluebugs has quit [Quit: Leaving]
dcz_ has quit [Ping timeout: 480 seconds]
floof58 is now known as Guest5332
floof58 has joined #wayland
agd5f has joined #wayland
julio7359 has joined #wayland
Guest5332 has quit [Ping timeout: 480 seconds]
agd5f_ has quit [Ping timeout: 480 seconds]
junaid_ has quit [Remote host closed the connection]
junaid has quit [Ping timeout: 480 seconds]
rv1sr has quit []
ManMower has joined #wayland
<DemiMarie>
i509vcb: I would be absolutely fine with mandating UTF-8.
<DemiMarie>
In fact, I would recommend it.
<emersion>
same
<DemiMarie>
Also why does the scanner need two XML parsers?
<emersion>
what do you mean?
<i509vcb>
I think one of the parsers is for DTD validation
jmdaemon has joined #wayland
Brainium has joined #wayland
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
cool110 has quit [Remote host closed the connection]