Project

General

Profile

Actions

Bug #3522

closed

String::size return invalid size on mswin64

Added by beuniv (shintaro kuwamoto) over 14 years ago. Updated over 13 years ago.

Status:
Closed
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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0