Project

General

Profile

Bug #3522

String::size return invalid size on mswin64

Added by beuniv (shintaro kuwamoto) over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.2dev (2010-07-01 revision 28513) [x64-mswin64_90]
Backport:
[ruby-dev:41782]

Description

=begin
x64-mswin64_90環境で、15文字以上のUTF-8文字列のサイズが正常に取得できません。

Z:\ruby-trunk\build>ruby -e"puts \"1234567890123\u{3042}\".size"
14

Z:\ruby-trunk\build>ruby -e"puts \"12345678901234\u{3042}\".size"
19
=end

Also available in: Atom PDF