General

Profile

mghomn (Justin Peal)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 9 9

Activity

04/26/2013

11:32 AM Ruby Misc #8329 (Rejected): Cannot change \r\n to \n (Windows/DOS to Unix)
I want to change all of my ruby files to UTF-8 encoded and Unix format, but after the running of the following program, the files' formats are still Windows/DOS (\r\n) but not Unix (\n). How could I do?
===============================
...
mghomn (Justin Peal)

04/18/2013

01:38 PM Ruby Bug #8287 (Rejected): Regexp performance issue
ADDRESS = # RFC-5322 : http://tools.ietf.org/html/rfc5322
/
(?<mailbox>
(?<name_addr>
(?<display_name>
(?<phrase>
(?<word>
(?<atom>
#\g<CFWS>?
#\g<atext>+
...
mghomn (Justin Peal)

01/30/2013

10:03 AM Ruby Feature #7751: How to encapsulate File.delete and File.rename into one 'transaction'?
What a great function! I've confirm it is true.
irb(main):001:0> File.write('src', '000')
=> 3
irb(main):002:0> File.write('dest', '1111')
=> 4
irb(main):003:0> File.rename('src', 'dest')
=> 0
irb(main):004:0> File.read('dest')
...
mghomn (Justin Peal)
09:53 AM Ruby Feature #7525: How to avoid memory leak when something gets wrong and throw exception when using win32api?
Thank you for the resource release schema! mghomn (Justin Peal)

01/29/2013

11:15 AM Ruby Feature #7751 (Rejected): How to encapsulate File.delete and File.rename into one 'transaction'?
Following program has a line: File.delete(sql_file) and File.rename(tmp_file, sql_file)
It is not a 'transaction' which is I need. Has Ruby a feature to encapsulate File.delete and File.rename into one 'transaction'?
======
class Stri...
mghomn (Justin Peal)

12/06/2012

05:17 PM Ruby Bug #6122: OpenSSL::PKCS7 verify
Thanks a lot! mghomn (Justin Peal)
05:16 PM Ruby Bug #6571: Time.mktime Y2K38 problem on 1.9.3p125 i386-mingw32
Great thanks to all of you. mghomn (Justin Peal)
05:11 PM Ruby Bug #6125: Exception Report
Sorry for I cannot find the original script. mghomn (Justin Peal)
05:09 PM Ruby Bug #6675: Raise exception when convert encoding of a character from GBK to UTF
# Because GBK is narrow, now I use GB18030 to avoid this error. :-)
#!/usr/bin/env ruby -w
# encoding: utf-8
require 'test/unit'
class Tests < Test::Unit::TestCase
def test_gbk
"\ue863".encode('gb18030').encode('utf-8')...
mghomn (Justin Peal)
05:00 PM Ruby Bug #6843: win32ole save shortcut fail on Windows XP
Thank you very much! mghomn (Justin Peal)

Also available in: Atom