ruby-changes:33963
From: nobu <ko1@a...>
Date: Thu, 22 May 2014 19:58:14 +0900 (JST)
Subject: [ruby-changes:33963] nobu:r46044 (trunk): remove trailing spaces
nobu 2014-05-22 19:58:08 +0900 (Thu, 22 May 2014) New Revision: 46044 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46044 Log: remove trailing spaces Modified files: trunk/enc/trans/escape.trans trunk/enc/trans/gb18030.trans trunk/ext/-test-/file/fs.c Index: enc/trans/escape.trans =================================================================== --- enc/trans/escape.trans (revision 46043) +++ enc/trans/escape.trans (revision 46044) @@ -6,19 +6,19 @@ https://github.com/ruby/ruby/blob/trunk/enc/trans/escape.trans#L6 end transcode_tblgen("", "amp_escape", [ - ["{00-25,27-FF}", :nomap], + ["{00-25,27-FF}", :nomap], ["26", hexstr("&")] ], nil) transcode_tblgen("", "xml_text_escape", [ - ["{00-25,27-3B,3D,3F-FF}", :nomap], + ["{00-25,27-3B,3D,3F-FF}", :nomap], ["26", hexstr("&")], ["3C", hexstr("<")], ["3E", hexstr(">")] ], nil) transcode_tblgen("", "xml_attr_content_escape", [ - ["{00-21,23-25,27-3B,3D,3F-FF}", :nomap], + ["{00-21,23-25,27-3B,3D,3F-FF}", :nomap], ["22", hexstr(""")], ["26", hexstr("&")], ["3C", hexstr("<")], Index: enc/trans/gb18030.trans =================================================================== --- enc/trans/gb18030.trans (revision 46043) +++ enc/trans/gb18030.trans (revision 46044) @@ -2,9 +2,9 @@ https://github.com/ruby/ruby/blob/trunk/enc/trans/gb18030.trans#L2 <% require "gb18030-tbl" - + def linear(code) - bytes = [code].pack('H8').unpack 'C4' + bytes = [code].pack('H8').unpack 'C4' ((bytes[0]*10+bytes[1])*126+bytes[2])*10+bytes[3] end @@ -31,7 +31,7 @@ https://github.com/ruby/ruby/blob/trunk/enc/trans/gb18030.trans#L31 code end end - + def calculate_differences_utf_gb(table) table_rev = table.map{|a,b| [b,a]} table_rev.collect do |code| @@ -123,7 +123,7 @@ fun_sio_to_gb18030(void *statep, const u https://github.com/ruby/ruby/blob/trunk/enc/trans/gb18030.trans#L123 { unsigned int diff = (unsigned int)(info >> 8); unsigned int u; /* Unicode Scalar Value */ - + u = ((s[0]&0x0F)<<12) | ((s[1]&0x3F)<<6) | (s[2]&0x3F); if (diff & 0x20000) { /* GB18030 4 bytes */ Index: ext/-test-/file/fs.c =================================================================== --- ext/-test-/file/fs.c (revision 46043) +++ ext/-test-/file/fs.c (revision 46044) @@ -25,7 +25,7 @@ get_fsname(VALUE self, VALUE str) https://github.com/ruby/ruby/blob/trunk/ext/-test-/file/fs.c#L25 FilePathValue(str); path = RSTRING_PTR(str); - fp = setmntent("/etc/mtab", "r"); + fp = setmntent("/etc/mtab", "r"); if (!fp) rb_sys_fail("setmntent(/etb/mtab)");; while (getmntent_r(fp, &mntbuf, buf, buflen)) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/