whitingjr has quit [Read error: Connection timed out]
whitingjr has joined #jruby
rusk has quit [Read error: Connection reset by peer]
rusk has joined #jruby
lucasb has joined #jruby
whitingjr has quit [Remote host closed the connection]
whitingjr has joined #jruby
<enebo[m]>
lopex: can you make an alias for "UTF8" to "UTF-8" in jcodings. Enough people keep hitting this where having them all correct their environments is more work than just having an alias
<enebo[m]>
lopex: I don't really see the harm of it either
<lopex>
enebo[m]: so we need a jcodings release now
xardion has quit [Remote host closed the connection]
xardion has joined #jruby
whitingjr has joined #jruby
rusk has quit [Remote host closed the connection]
shellac has joined #jruby
whitingjr has quit [Ping timeout: 245 seconds]
subbu is now known as subbu|lunch
shellac has quit [Quit: Computer has gone to sleep.]
<lopex>
enebo[m]: let me clarify, was that with that alias just added ?
subbu|lunch is now known as subbu
<enebo[m]>
lopex: my test output was from master which will be 9.2.8.0 so that alias must be from a jcodings release since we do not snapshot those libs any more
<enebo[m]>
lopex: so we must default to utf-8 in case it cannot find it
<lopex>
so there's a fallback
<lopex>
enebo[m]: can you try with that todays commit ?
<enebo[m]>
lopex: reporter said master works for them so we probably added something at some point
<lopex>
but then we'd have to make sure tu turn off fallbacks
<enebo[m]>
lopex: yeah I would like to know why this is happening
<lopex>
but it's no a jcodings thing afair
<enebo[m]>
lopex: fwiw only windows seemed to have issues with UTF8 with only j9 or file.encoding=UTF8
<enebo[m]>
lopex: but apparently j9 is working on windows now with master
<lopex>
it must be jruby then
<enebo[m]>
lopex: yeah we must have did something to encoding processing in last half a year
<enebo[m]>
lopex: yeah
<lopex>
so, encoding service ?
<enebo[m]>
lopex: I will update jcodings though
<enebo[m]>
probably?
<lopex>
enebo[m]: since encoding service is aware of jcodings aliases it might go different path
<lopex>
yeah
<lopex>
enebo[m]: I mean, it should go through findEncodingOrAliasEntry
<lopex>
but I dunno where any fallback is if any
<enebo[m]>
ok in May there were two commits (one appears to just correct something from first) related to processing encoding for default external on windows
<lopex>
but before findEncodingOrAliasEntry or after ?
<enebo[m]>
It is for filesystem encoding during initCore
<lopex>
does it use encoding service ?
<enebo[m]>
which if it cannot find the encoding it defaults to defaultExternal
<lopex>
then there's encoding db which has names mapped to entries
<enebo[m]>
I honestly don't fully understand how jcodings does this. I knew there were aliases but I don't know how people are suppose to search to get an encoding. I am satisfied with EncodingService doing the right thing
<enebo[m]>
(although I do bypass in lexer and get US ASCII and UTF8 directly
<lopex>
jcodings itself is not aware of aliases
<enebo[m]>
but we always consume both of those
<lopex>
it just keeps alias list, thats all
<lopex>
well, I'll look into it
<enebo[m]>
lopex: so consumers need to call alias helper to get real name and then get the encoding or something like that?
<lopex>
enebo[m]: if they use jruby's encoding service it should be ok now
<lopex>
enebo[m]: jcodings just maintain list of encodings and aliases
<lopex>
but encoding service resolves aliasing
<enebo[m]>
lopex: ok so if I release jcodings we are good
<lopex>
enebo[m]: well, it sohuld break anything
<lopex>
*shouldnt
<lopex>
enebo[m]: but what I was telling you now is just a theory :P
<lopex>
with some grounds though
<enebo[m]>
lopex: The alias will affect much more than filesystem encoding settings on windows as well so I think generally it will reduce any issues in the future other than the opposite direction (someone using it in JRuby then realizing it does not work in MRI)
<lopex>
to test that, we'd need a repro which foes through findEncodingOrAliasEntry
<enebo[m]>
lopex: I am going to make sure it works with pragma and -E too
<lopex>
*goes even
<lopex>
enebo[m]: when jcodings was extracted from joni there wasnt any alias concepts yet
<lopex>
so that's a historical burden now
<lopex>
but alias resolving should probably go into jcodings
<lopex>
I recall there was some problem with jruby runtime needed at some point
<lopex>
since mri has it all in the same code base, they dont care
<lopex>
yeah, all alias phrases in oniguruma repo from that time are ruby alias methods