summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-22 10:58:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-22 10:58:08 +0000
commitbd403755d0617a3774db45a821b8fb644ade956a (patch)
tree099c392cdbdff6c87c87174cc13f30736824c958
parent4c9ec80ece69b0295f88dcc4262960bc0c298b2a (diff)
remove trailing spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--enc/trans/escape.trans6
-rw-r--r--enc/trans/gb18030.trans8
-rw-r--r--ext/-test-/file/fs.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/enc/trans/escape.trans b/enc/trans/escape.trans
index 550e4ac..c76ffa0 100644
--- a/enc/trans/escape.trans
+++ b/enc/trans/escape.trans
@@ -6,19 +6,19 @@
end
transcode_tblgen("", "amp_escape", [
- ["{00-25,27-FF}", :nomap],
+ ["{00-25,27-FF}", :nomap],
["26", hexstr("&amp;")]
], nil)
transcode_tblgen("", "xml_text_escape", [
- ["{00-25,27-3B,3D,3F-FF}", :nomap],
+ ["{00-25,27-3B,3D,3F-FF}", :nomap],
["26", hexstr("&amp;")],
["3C", hexstr("&lt;")],
["3E", hexstr("&gt;")]
], 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("&quot;")],
["26", hexstr("&amp;")],
["3C", hexstr("&lt;")],
diff --git a/enc/trans/gb18030.trans b/enc/trans/gb18030.trans
index 94c866e..f42f8fd 100644
--- a/enc/trans/gb18030.trans
+++ b/enc/trans/gb18030.trans
@@ -2,9 +2,9 @@
<%
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 @@
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 unsigned char *s, size_t l, VALUE info, u
{
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 */
diff --git a/ext/-test-/file/fs.c b/ext/-test-/file/fs.c
index ed1e64e..4a41bf3 100644
--- a/ext/-test-/file/fs.c
+++ b/ext/-test-/file/fs.c
@@ -25,7 +25,7 @@ get_fsname(VALUE self, VALUE str)
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)) {