lsegal / yard

YARD is a Ruby Documentation tool. The Y stands for "Yay!"
http://yardoc.org
MIT License
1.94k stars 397 forks source link

Parser::SourceParser#convert_encoding - fixup BOM encoding #1510

Closed MSP-Greg closed 1 year ago

MSP-Greg commented 1 year ago

Description

Ruby 3.3 may change handling of BOM encoded files. Change code to work with 3.3 and earlier versions.

Closes #1509

Note that Ruby 2.7 added IO##set_encoding_by_bom

Completed Tasks

lsegal commented 1 year ago

Thanks for the quick fix on #1509!