~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to ext/stringio/stringio.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-05-16 12:37:06 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080516123706-r4llcdfd35aobrjv
Tags: 1.9.0.1-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Robustify check for target_os, fixing build failure on lpia.
* debian/control:
  - ruby1.9 pkg: moved rdoc1.9 suggestion to depends. (LP: #228345)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  stringio.c -
4
4
 
5
5
  $Author: nobu $
6
 
  $Date: 2007-09-22 05:19:51 +0900 (Sat, 22 Sep 2007) $
7
6
  $RoughId: stringio.c,v 1.13 2002/03/14 03:24:18 nobu Exp $
8
7
  created at: Tue Feb 19 04:10:38 JST 2002
9
8
 
188
187
        ptr->flags = OBJ_FROZEN(string) ? FMODE_READABLE : FMODE_READWRITE;
189
188
        break;
190
189
      case 0:
191
 
        string = rb_str_new("", 0);
 
190
        string = rb_enc_str_new("", 0, rb_default_external_encoding());
192
191
        ptr->flags = FMODE_READWRITE;
193
192
        break;
194
193
    }