Project

General

Profile

Actions

Bug #1011

closed

Chinese GB18030 transcoding is breaking build at r21509

Added by luislavena (Luis Lavena) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
Backport:
[ruby-core:21345]

Description

=begin
While building from sources, revision r21509 introduced the following problem:


 generating enc/trans/escape.c ...
 converter for amp_escape
 converter for xml_text_escape
 converter for xml_attr_content_escape
 converter for escape_xml_attr_quote
 done.
 ruby -I/home/luislavena/.rake-compiler/builds/ruby-1.9.1-trunk -rfake  "/home/luislavena/.rake-compiler/sources/ruby-1.9.1-trunk/tool/transcode-tblgen.rb" -vo "enc/trans/gb18030.c" "/home/luislavena/.rake-compiler/sources/ruby-1.9.1-trunk/enc/trans/gb18030.trans"
 generating enc/trans/gb18030.c ...
 /home/luislavena/.rake-compiler/sources/ruby-1.9.1-trunk/enc/trans/gb18030.trans:8: compile error (SyntaxError)
 /home/luislavena/.rake-compiler/sources/ruby-1.9.1-trunk/enc/trans/gb18030.trans:7: syntax error, unexpected ',', expecting ']'
 /home/luislavena/.rake-compiler/sources/ruby-1.9.1-trunk/enc/trans/gb18030.trans:8: syntax error, unexpected ',', expecting $end        from /home/luislavena/.rake-compiler/sources/ruby-1.9.1-trunk/tool/transcode-tblgen.rb:821
 make[1]: *** [enc/trans/gb18030.c] Error 1
 make[1]: Leaving directory `/home/luislavena/.rake-compiler/builds/ruby-1.9.1-trunk'
 make: *** [srcs-enc] Error 2
 

Going back to r21508 make the problem go away.

The log of the commit is the following:


r21509 | duerst | 2009-01-14 09:12:30 -0200 (Wed, 14 Jan 2009) | 11 lines

  • enc/trans/gb18030.trans, gb18030-tbl.rb:
    new Chinese GB18030 transcoding (from Yoshihiro Kambayashi)

  • test/ruby/test_transcode.rb: added tests for the above
    (from Yoshihiro Kambayashi)

  • transcode_data.h, transcode.c, tool/transcode_tblgen.rb:
    added support for GB18030-specific 4-byte sequences
    (with Yoshihiro Kambayashi)
    =end

Actions

Also available in: Atom PDF

Like0
Like0Like0