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

« back to all changes in this revision

Viewing changes to ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-01-24 11:42:29 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080124114229-jw2f87rdxlq6gp11
Tags: 1.9.0.0-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Robustify check for target_os, fixing build failure on lpia.

Show diffs side-by-side

added added

removed removed

Lines of Context:
322
322
 
323
323
 
324
324
  def _ktext_length(txt)
 
325
    if RUBY_VERSION < '1.9.0' ### !!!!!!!!!!!!!
 
326
      return txt.length
 
327
    end
 
328
    ###########################
 
329
 
325
330
    if $KCODE !~ /n/i
326
331
      return txt.gsub(/[^\Wa-zA-Z_\d]/, ' ').length
327
332
    end