<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>23733</bug_id>
          
          <creation_ts>2010-07-05 23:45:10 +0400</creation_ts>
          <short_desc>Отображение истории в wiki с кириллицей заканчивается крахом</short_desc>
          <delta_ts>2010-07-22 13:42:51 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>redmine</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denis Yagofarov">denyago</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110377</commentid>
    <comment_count>0</comment_count>
    <who name="Denis Yagofarov">denyago</who>
    <bug_when>2010-07-05 23:45:10 +0400</bug_when>
    <thetext>Если в одной из версий wiki-страницы присутствуют кириллические буквы, при сравнении этой версии с другими происходит крах.

1) v1: Test
2) v2: Teest
3) v3: Тест
4) v1 vs. v2: ** Отображает разницу **
5) v2 vs. v3: ** Падает **

Конфиги:

$ cat /etc/redmine/prodtest/database.yml
production:
  adapter: sqlite3
  database: /var/redmine/prodtest
  encoding: utf8

$ cat /etc/mongrel_cluster/sites-available/redmine-prodtest.env
export LANG=ru_RU.UTF-8
export X_ALT_SITEID=&quot;prodtest&quot;

Пакеты:

ruby-1.9.1-alt1.r26040.1
ruby-rails-2.3.8-alt1

Пробовал конвертировать темплейт в utf8 - не сработало. 
Пробовал применить во этот патч: http://s3.amazonaws.com/activereload-lighthouse/assets/ecec90b7ed8ccc3ca7472413376ea9374a027edf/workaround-erb.diff?AWSAccessKeyId=1AJ9W2TX1B2Z7C2KYB82&amp;Expires=1278357174&amp;Signature=Z2%2BIPPqoJBJXwmmyCc%2BLK1M/nUQ%3D

У меня, пока, не хватает знаний починить самому.

Бектрейс:

ActionView::TemplateError (incompatible character encodings: UTF-8 and ASCII-8BIT) on line #17 of app/views/wiki/diff.rhtml:
14: 
15: &lt;hr /&gt;
16: 
17: &lt;%= html_diff(@diff) %&gt;

    app/views/wiki/diff.rhtml:17:in `concat&apos;
    app/views/wiki/diff.rhtml:17:in `_run_rhtml_app47views47wiki47diff46rhtml&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_view/renderable.rb:34:in `block in render&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_view/base.rb:306:in `with_template&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_view/renderable.rb:30:in `render&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_view/template.rb:205:in `render_template&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_view/base.rb:265:in `render&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_view/base.rb:348:in `_render_with_layout&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_view/base.rb:262:in `render&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/base.rb:1250:in `render_for_file&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/base.rb:936:in `render&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/benchmarking.rb:51:in `block in render_with_benchmark&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/benchmarking.rb:51:in `render_with_benchmark&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/base.rb:1326:in `default_render&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/base.rb:1332:in `perform_action&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/filters.rb:617:in `call_filters&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/filters.rb:610:in `perform_action_with_filters&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/rescue.rb:160:in `perform_action_with_rescue&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/flash.rb:151:in `perform_action_with_flash&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/base.rb:532:in `process&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/filters.rb:606:in `process_with_filters&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/base.rb:391:in `process&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/base.rb:386:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/routing/route_set.rb:438:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/dispatcher.rb:87:in `dispatch&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/dispatcher.rb:121:in `_call&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/dispatcher.rb:130:in `block in build_middleware_stack&apos;
    /usr/share/ruby/vendor_ruby/1.9/active_record/query_cache.rb:29:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/active_record/query_cache.rb:29:in `block in call&apos;
    /usr/share/ruby/vendor_ruby/1.9/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache&apos;
    /usr/share/ruby/vendor_ruby/1.9/active_record/query_cache.rb:9:in `cache&apos;
    /usr/share/ruby/vendor_ruby/1.9/active_record/query_cache.rb:28:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/string_coercion.rb:25:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/rack/head.rb:9:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/rack/methodoverride.rb:24:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/params_parser.rb:15:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/session/cookie_store.rb:99:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/failsafe.rb:26:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/rack/lock.rb:11:in `block in call&apos;
    &lt;internal:prelude&gt;:8:in `synchronize&apos;
    /usr/share/ruby/vendor_ruby/1.9/rack/lock.rb:11:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/dispatcher.rb:106:in `call&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/cgi_process.rb:44:in `dispatch_cgi&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/dispatcher.rb:101:in `dispatch_cgi&apos;
    /usr/share/ruby/vendor_ruby/1.9/action_controller/dispatcher.rb:27:in `dispatch&apos;
    /usr/share/ruby/vendor_ruby/1.9/mongrel/rails.rb:76:in `block in process&apos;
    &lt;internal:prelude&gt;:8:in `synchronize&apos;
    /usr/share/ruby/vendor_ruby/1.9/mongrel/rails.rb:74:in `process&apos;
    /usr/share/ruby/vendor_ruby/1.9/mongrel.rb:157:in `block in process_client&apos;
    /usr/share/ruby/vendor_ruby/1.9/mongrel.rb:156:in `each&apos;
    /usr/share/ruby/vendor_ruby/1.9/mongrel.rb:156:in `process_client&apos;
    /usr/share/ruby/vendor_ruby/1.9/mongrel.rb:283:in `block (2 levels) in run&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110500</commentid>
    <comment_count>1</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2010-07-12 02:35:00 +0400</bug_when>
    <thetext>Патч проэкспайрился.

А как настроена компрессия wiki-страниц?  Если попробовать с ней поиграться?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110607</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2010-07-14 07:36:06 +0400</bug_when>
    <thetext>redmine-0.9.6-alt1.r3839.1 -&gt; sisyphus:

* Sat Jul 10 2010 Alexey I. Froloff &lt;raorn@altlinux&gt; 0.9.6-alt1.r3839.1
- SVN revision 3839
- Added missing deps on pwgen (closes: #23726)
- Fixed one more anti-xss html-escape issue (closes: #23728)
- Forced wiki page encoding to UTF-8 when using compression (closes: #23733)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110739</commentid>
    <comment_count>3</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2010-07-22 13:03:40 +0400</bug_when>
    <thetext>Не хватило, нужно ещё некомпрессованые страницы энфорсить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110740</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2010-07-22 13:42:51 +0400</bug_when>
    <thetext>redmine-1.0.0-alt1.r3858.1 -&gt; sisyphus:

* Tue Jul 20 2010 Alexey I. Froloff &lt;raorn@altlinux&gt; 1.0.0-alt1.r3858.1
- 1.0.0 release (SVN revision 3858)
- Forced wiki page encoding to UTF-8 (closes: #23733)
- Fixed getopt invocation in redmine-init (closes: #23789)
- Reworked instance enumeration in redmine-rake to avoid stdin
  consumption (closes: #23790)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>