Changeset 11124


Ignore:
Timestamp:
03/15/10 10:17:39 (2 years ago)
Author:
azawawi
Message:

A better fix to r11123 and ticket:889.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Locale.pm

    r11123 r11124  
    599599    # Because Encode::Guess is slow and expensive, do an initial fast 
    600600    # regexp scan for the simplest and most common "ascii" encoding. 
    601     # Check for POSIX printable characters, plus the two newline characters. 
    602     #return 'ascii' unless $content =~ /[^[:print:]\015\012]/; 
     601    return 'ascii' unless $content =~ /[^[:ascii:]]/; 
    603602 
    604603    # FIX ME 
Note: See TracChangeset for help on using the changeset viewer.