Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5319

Show
Ignore:
Timestamp:
10/17/06 23:11:47 (3 years ago)
Author:
nzkoz
Message:

Default $KCODE to 'u' to enable the multibyte-safe chars proxy. [Koz]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r5317 r5319  
    11*SVN* 
     2 
     3* Set $KCODE to 'u' by default to enable the multibyte safe String#chars proxy. [Koz] 
    24 
    35* Added config.plugins to control which plugins are loaded #6269 [skaes]. By default, everything in vendor/plugins will be loaded, but if you specify config.plugins, only those will be loaded. Example: 
  • trunk/railties/lib/initializer.rb

    r5317 r5319  
    8484      load_environment 
    8585 
     86      initialize_encoding 
    8687      initialize_database 
    8788      initialize_logger 
     
    196197    def load_observers 
    197198      ActiveRecord::Base.instantiate_observers 
     199    end 
     200 
     201    # This initialzation sets $KCODE to 'u' to enable the multibyte safe operations. 
     202    # Plugin authors supporting other encodings should override this behaviour and  
     203    # set the relevant +default_charset+ on ActionController::Base 
     204    def initialize_encoding 
     205      $KCODE='u' 
    198206    end 
    199207