ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "h.shirosaki (Hiroshi Shirosaki)" <h.shirosaki@gmail.com>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:45952] [ruby-trunk - Bug #6650] Fixing win32ole test errors
Date: Fri, 29 Jun 2012 21:39:11 +0900	[thread overview]
Message-ID: <redmine.journal-27560.20120629213910@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-6650.20120626224330@ruby-lang.org


Issue #6650 has been updated by h.shirosaki (Hiroshi Shirosaki).

File 0001-Use-UTF-16-String-instead-of-UTF-8.patch added

I had same failure on Win7 with chcp 932(default), 1252 and 65001. I guess it depends on Windows system default encoding.
If I change the string from UTF-8 to UTF-16LE, the test works fine for me.
UTF-16LE or ASCII String might be better. I attached the patch.
----------------------------------------
Bug #6650: Fixing win32ole test errors
https://bugs.ruby-lang.org/issues/6650#change-27560

Author: bosko (Boško Ivanišević)
Status: Feedback
Priority: Normal
Assignee: luislavena (Luis Lavena)
Category: test
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-06-25 trunk 36180) [i386-mingw32]


Since FileSystemObject is limited only to ANSI and UTF-16LE encoding tests shouldn't try to use other encodings since they will certainly fail. Instead UTF-16 encoding should be used to check whether writing/reading to/from FSO is properly handled. Attached is a patch that fixes this.


-- 
http://bugs.ruby-lang.org/

  parent reply	other threads:[~2012-06-29 12:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26 13:43 [ruby-core:45887] [ruby-trunk - Bug #6650][Open] Fixing win32ole test errors bosko (Boško Ivanišević)
2012-06-26 19:46 ` [ruby-core:45895] [ruby-trunk - Bug #6650][Assigned] " luislavena (Luis Lavena)
2012-06-28 21:39 ` [ruby-core:45945] [ruby-trunk - Bug #6650] " suke (Masaki Suketa)
2012-06-28 21:54 ` [ruby-core:45947] [ruby-trunk - Bug #6650][Feedback] " luislavena (Luis Lavena)
2012-06-29 12:39 ` h.shirosaki (Hiroshi Shirosaki) [this message]
2012-06-29 23:38 ` [ruby-core:45977] [ruby-trunk - Bug #6650] " luislavena (Luis Lavena)
2012-06-30  1:41 ` [ruby-core:45979] " h.shirosaki (Hiroshi Shirosaki)
2012-06-30 14:24 ` [ruby-core:45987] " luislavena (Luis Lavena)
2012-07-04 10:22   ` [ruby-core:46175] " Masaki Suketa
2012-07-03 16:32 ` [ruby-core:46146] " luislavena (Luis Lavena)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-27560.20120629213910@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).