New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BOM flag should be removed if open file with UTF-8 #3725
Comments
From @FROGGSTaken from: http://irclog.perlgeek.de/perl6/2014-10-27#i_9574112 bronco_creek: I have a question about reading from a file. When I use, for example: for $in.lines -: $line {say $line} is see a "?" prepended to the first line. What's up with that? |
From wbiker@gmx.atHi, On Windows, the Notepad.exe saves the Byte Order Mark (BOM) at the begin of The user has to handle that, which is anoying and not intuitive. thanks |
From @smlsFor the record this was recently discussed on IRC starting at <http://irclog.perlgeek.de/perl6/2015-03-06#i_10234453>. Excerpt of constructive comments: moritz: open() could have a :strip-bom option or so perl6_newbee: I would like it the other way. To have BOM striped other the :dont-strip-bom attribute is set PerlJam what if it's *not* a BOM, but looks like one? moritz: .u FEFF jnthn: If we implemnt this, then it belongs, imo, in the UTF-8 decoding handling TimToady: +1 to always stripping BOM on textual input |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Mon Mar 09 06:03:21 2015, smls75@gmail.com wrote:
Now implemented in Moar's UTF-8 decoder, and covered by S16-io/bom.t in the spectests. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#124024 (status was 'resolved')
Searchable as RT124024$
The text was updated successfully, but these errors were encountered: