Displaying 1 result from an estimated 1 matches for "file_w".
Did you mean:
file_t
2008 Nov 10
4
PathFindExtension and wide strings
Hi,
What''s happening here?
require ''windows/path''
require ''windows/unicode''
include Windows::Path
include Windows::Unicode
file_a = ''bar.txt''
file_w = multi_to_wide(file_a)
p PathFindExtensionA(file_a) # ''.txt'' => OK
p PathFindExtensionW(file_w) # ''.'' => WRONG
Is Ruby chopping the result because of an embedding null? How do we deal
with it?
Thanks,
Dan
This communication is the property of Qwes...