hsbt_away changed the topic of #ruby-core to: check the latest release candidate for 1.9.1 release ftp.ruby-lang.org:/home/yugui/ruby-1.9.1-r26021+1.tar.bz2
<znz_jp> biff: [ruby-changes:30124] naruse:r42176 (trunk): fix warning: shadowing outer local variable - path - http://mla.n-z.jp/?ruby-changes=30124
<znz_jp> biff: [ruby-changes:30125] naruse:r42177 (trunk): fix missing assignment in r42174 - http://mla.n-z.jp/?ruby-changes=30125
guilleiguaran_ has joined #ruby-core
zzak_ is now known as zzak
Guest85414__ has joined #ruby-core
DanKnox is now known as DanKnox_away
zzak_ has joined #ruby-core
zzak has quit [Quit: leaving]
zzak has joined #ruby-core
zzak has quit [Client Quit]
zzak has joined #ruby-core
zzak has quit [Quit: leaving]
zzak has joined #ruby-core
nagachika has joined #ruby-core
nagachika has quit [Read error: Connection reset by peer]
nagachika has joined #ruby-core
nagachika has quit [Remote host closed the connection]
nagachika has joined #ruby-core
nari has quit [Ping timeout: 240 seconds]
nari has joined #ruby-core
Domon_ has joined #ruby-core
rafaelfranca has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
<znz_jp> biff: [ruby-changes:30126] nobu:r42178 (trunk): rational.c: ensure to be Rational - http://mla.n-z.jp/?ruby-changes=30126
<zzak> nokada: can you check my segv? #8692
<zzak> i am probably doing something wrong
<nokada> time() returns time_t, not pointer
<zzak> how to represent in fiddle?
<zzak> there is no Fiddle:TYPE_TIME_T
<nokada> no handy way, probably
<nokada> but Fiddle::TYPE_LONG would work until 2038
<zzak> i think i need to use importer
<zzak> yeah TYPE_LONG just segfaults
shinnya has quit [Ping timeout: 264 seconds]
<nokada> time = Fiddle::Function.new( libc['time'], [Fiddle::TYPE_VOIDP], Fiddle::TYPE_LONG )
<nokada> printed 1374808601
<nokada> you can write `libc = Fiddle.dlopen(nil)'
<zzak> ahh
<zzak> thank you!
<zzak> dlopen(nil) is much better
<zzak> but why segfault?
<nokada> what's your platform?
<nokada> and backtrace
<nokada> it's old one, isn't it?
<zzak> the backtrace?
<zzak> 1 hour old
<nokada> I meant the backtrace at segfaults by TYPE_LONG
<zzak> only segv when use LONG for args
<zzak> no segv when VOIDP for args
<nokada> time = Fiddle::Function.new(libc['time'], [Fiddle::TYPE_LONG], Fiddle::TYPE_LONG)
<nokada> puts time.call(0)
<nokada> works
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<zzak> try time.call(1)
<zzak> is 0 same as NULL?
<nokada> yes
<zzak> thank you
<nokada> usually NULL is defined as 0 or (void *)0
<nokada> ok to reject #8692?
<zzak> nokada: sure, thank you for the help!
<zzak> I'm patching Fiddle::dlopen() docs about nil library
Domon_ has quit [Read error: Connection reset by peer]
<nokada> nice
Domon_ has joined #ruby-core
kosaki8 has joined #ruby-core
<znz_jp> biff: [ruby-changes:30127] nobu:r42179 (trunk): win32/file.c: refine convert_mb_to_wchar - http://mla.n-z.jp/?ruby-changes=30127
<znz_jp> biff: [ruby-changes:30128] nobu:r42180 (trunk): win32/file.c: refine fix_string_encoding - http://mla.n-z.jp/?ruby-changes=30128
<znz_jp> biff: [ruby-changes:30129] nobu:r42181 (trunk): file.c: use rb_str_conv_enc - http://mla.n-z.jp/?ruby-changes=30129
<znz_jp> biff: [ruby-changes:30130] nobu:r42182 (trunk): test_require.rb: split - http://mla.n-z.jp/?ruby-changes=30130
<znz_jp> biff: [ruby-changes:30131] nobu:r42183 (trunk): load.c: search in OS path encoding - http://mla.n-z.jp/?ruby-changes=30131
DanKnox is now known as DanKnox_away
<znz_jp> biff: [ruby-changes:30132] zzak:r42184 (trunk): * ext/fiddle/lib/fiddle.rb: [DOC] Document Fiddle.dlopen(nil) - http://mla.n-z.jp/?ruby-changes=30132
<znz_jp> biff: [ruby-changes:30133] nobu:r42185 (trunk): test_require.rb: use assert_separately - http://mla.n-z.jp/?ruby-changes=30133
<znz_jp> biff: [ruby-changes:30134] nobu:r42186 (trunk): test_require.rb: same process - http://mla.n-z.jp/?ruby-changes=30134
<nokada> zzak: nil doesn't mean libc, but all libraries already loaded
<zzak> it uses RTLD_DEFAULT, which says "Which will find the first occurrence of the desired symbol using the default library search order"
<zzak> oh, looks like it is using LoadLibrary()
<zzak> define dlopen(name,flag) ((void*)LoadLibrary(name))
<zzak> im not sure what that does
<zzak> oh thats only for windows
nagachik_ has joined #ruby-core
<zzak> nokada: reading dlopen(3)
nagachika has quit [Ping timeout: 276 seconds]
<nurse> RTLD_DEFAULT's behavior is different on OS
DanKnox_away is now known as DanKnox
<zzak> i just want to help new people like me understand
<zzak> libc = Fiddle.dlopen(nil)
<zzak> i wrote a new patch: https://gist.github.com/zzak/6086310
<nokada> Fiddle.dlopen(nil)["rb_str_new"] works
<nokada> not only functions in libc
<zzak> functions in ruby.h?
<nokada> all functions in libraries already loaded
<nokada> ruby -rfiddle -e 'p Fiddle.dlopen(nil)["SSL_ctrl"]' fails
<nokada> but ruby -ropenssl -rfiddle -e 'p Fiddle.dlopen(nil)["SSL_ctrl"]' works
<zzak> ruby -rfiddle -e'Fiddle.dlopen(nil)["rb_str_new2"]'
<znz_jp> biff: [ruby-changes:30135] zzak:r42187 (trunk): * ext/fiddle/*: [DOC] More doc on dlopen and RTLD_DEFAULT from r42186 - http://mla.n-z.jp/?ruby-changes=30135
<znz_jp> biff: [ruby-changes:30136] zzak:r42188 (trunk): ChangeLog typo - http://mla.n-z.jp/?ruby-changes=30136
r0bgleeson has quit [Ping timeout: 256 seconds]
<nurse> if you are reading OS X's man, read dlsym(3)
nagachik_ has quit [Remote host closed the connection]
charliesome has joined #ruby-core
nagachika has joined #ruby-core
nagachika has quit [Remote host closed the connection]
nagachika has joined #ruby-core
kosaki8 has quit [Ping timeout: 276 seconds]
DanKnox is now known as DanKnox_away
Domon_ has quit [Remote host closed the connection]
Domon_ has joined #ruby-core
<znz_jp> biff: [ruby-changes:30137] nobu:r42189 (trunk): win32/file.c: adjust indent - http://mla.n-z.jp/?ruby-changes=30137
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby-core
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
nokada has quit [Remote host closed the connection]
kosaki8 has joined #ruby-core
nokada has joined #ruby-core
xibbar_ie has joined #ruby-core
xibbar_i_ has quit [Ping timeout: 246 seconds]
<znz_jp> biff: [ruby-changes:30138] nobu:r42190 (trunk): win32/file.c: fix target encoding - http://mla.n-z.jp/?ruby-changes=30138
<znz_jp> biff: [ruby-changes:30139] nobu:r42191 (trunk): win32/file.c: suppress warning - http://mla.n-z.jp/?ruby-changes=30139
kosaki8 has quit [Ping timeout: 246 seconds]
eLobato has joined #ruby-core
<znz_jp> biff: [ruby-changes:30140] ko1:r42192 (trunk): * array.c (ary_memcpy): try to enable optimization. - http://mla.n-z.jp/?ruby-changes=30140
<znz_jp> biff: [ruby-changes:30141] ko1:r42193 (trunk): * array.c (ary_memcpy): cast to int to suppress a warning. - http://mla.n-z.jp/?ruby-changes=30141
nokada has quit [Remote host closed the connection]
nari has quit [Ping timeout: 264 seconds]
<znz_jp> biff: [ruby-changes:30142] ko1:r42194 (trunk): * vm_exec.h, tool/instruction.rb: not an error, but a BUG if stack - http://mla.n-z.jp/?ruby-changes=30142
Domon_ has quit [Remote host closed the connection]
nari has joined #ruby-core
<znz_jp> biff: [ruby-changes:30143] knu:r42195 (trunk): Add facility to Syslog::Logger. - http://mla.n-z.jp/?ruby-changes=30143
kosaki8 has joined #ruby-core
hsbt has quit [Ping timeout: 256 seconds]
hsbt has joined #ruby-core
kosaki8 has quit [Ping timeout: 240 seconds]
nokada has joined #ruby-core
nokada_ has joined #ruby-core
nokada has quit [Read error: Connection reset by peer]
enebo has joined #ruby-core
enebo has quit [Client Quit]
rafaelfranca has joined #ruby-core
rafaelfranca has quit [Remote host closed the connection]
kosaki8 has joined #ruby-core
<znz_jp> biff: [ruby-changes:30144] nobu:r42196 (trunk): vm_exec.h: fix CHECK_VM_STACK_OVERFLOW_FOR_INSN - http://mla.n-z.jp/?ruby-changes=30144
ZachBeta has joined #ruby-core
Ortuna has joined #ruby-core
Ortuna has quit [Quit: IRC Leave]
r0bgleeson has joined #ruby-core
kosaki8 has quit [Ping timeout: 276 seconds]
enebo has joined #ruby-core
kosaki2 has joined #ruby-core
ZachBeta has quit [Quit: Computer has gone to sleep.]
rafaelfranca has joined #ruby-core
charliesome has joined #ruby-core
<znz_jp> biff: [ruby-changes:30145] nobu:r42197 (trunk): parse.y: separate numeric literal - http://mla.n-z.jp/?ruby-changes=30145
<znz_jp> biff: [ruby-changes:30146] kou:r42198 (trunk): * lib/rexml/parsers/streamparser.rb - http://mla.n-z.jp/?ruby-changes=30146
<znz_jp> biff: [ruby-changes:30147] kou:r42199 (trunk): * NEWS: Add a new feature that REXML::Parsers::StreamParser - http://mla.n-z.jp/?ruby-changes=30147
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
ZachBeta has joined #ruby-core
eLobato has quit [Quit: WeeChat 0.4.0]
enebo has quit [Quit: enebo]
heroux has quit [Ping timeout: 276 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
nagachika has quit [Remote host closed the connection]
shinnya has joined #ruby-core
kosaki2 has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
tylersmith has joined #ruby-core
tylersmi_ has joined #ruby-core
tylersmith has quit [Read error: Connection reset by peer]
heroux has joined #ruby-core
enebo has joined #ruby-core
kosaki2 has joined #ruby-core
ZachBeta has joined #ruby-core
nari has quit [Ping timeout: 264 seconds]
enebo has quit [Ping timeout: 264 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
tylersmi_ has quit [Remote host closed the connection]
ex9t has quit [Read error: Connection reset by peer]
ex9t has joined #ruby-core
ZachBeta has joined #ruby-core
ZachBeta has quit [Client Quit]
ged has quit [Read error: Connection reset by peer]
ged_ has joined #ruby-core
tylersmith has joined #ruby-core
rafaelfranca has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 264 seconds]
kosaki2 has quit [Ping timeout: 260 seconds]
nokada has joined #ruby-core
nokada_ has quit [Read error: Connection reset by peer]
kosaki8 has joined #ruby-core
hsbt has quit [Ping timeout: 264 seconds]
hsbt has joined #ruby-core
hsbt has quit [Ping timeout: 264 seconds]
hsbt has joined #ruby-core
hsbt has quit [Ping timeout: 240 seconds]
hsbt has joined #ruby-core
hsbt has quit [Ping timeout: 240 seconds]
hsbt has joined #ruby-core
hsbt has quit [Ping timeout: 264 seconds]
hsbt has joined #ruby-core