head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.05.19.14.45.52; author taca; state Exp; branches; next ; commitid G9InE3RBZ8j40rGG; desc @@ 1.1 log @lang/ruby33: improve rdoc * Fix rdoc problem on C locale, backported from rdoc-7.0.4. * Remove pkglint warning. Bump PKGREVISION. @ text @$NetBSD$ Backport from rdoc-7.0.4. --- lib/rdoc/parser/c.rb.orig 2026-03-26 00:05:04.000000000 +0000 +++ lib/rdoc/parser/c.rb @@@@ -1011,7 +1011,7 @@@@ class RDoc::Parser::C < RDoc::Parser file_name = File.join @@file_dir, source_file if File.exist? file_name then - file_content = File.read file_name + file_content = RDoc::Encoding.read_file file_name, @@options.encoding else @@options.warn "unknown source #{source_file} for #{meth_name} in #{@@file_name}" end @