https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-10-04T13:47:08ZRedmineRedmine - Defect #6568: Custom field min_length and max_length checks and multibyte stringshttps://www.redmine.org/issues/6568?journal_id=209982010-10-04T13:47:08ZFelix Schäfer
<ul></ul><p>Could you please give steps to reproduce this problem, i.e. what custom field did you create with what options, and what did you try to put in this custom field?</p> Redmine - Defect #6568: Custom field min_length and max_length checks and multibyte stringshttps://www.redmine.org/issues/6568?journal_id=210062010-10-04T15:58:36ZVitaliy Ischenko
<ul></ul><p>I've created ProjectCustomField</p>
For example:
<ol>
<li>Name: Test</li>
<li>Format: text</li>
<li>Min length: 5</li>
<li>Max length: 7</li>
</ol>
<p>no default value, no regex<br />checkboxes left untouched</p>
<p>Then i've navigated to project settings and entered value 'АБВГДЕЖ'</p>
<p>After submitting - validation error appears: "Test is too long (maximum is 7 characters)"</p> Redmine - Defect #6568: Custom field min_length and max_length checks and multibyte stringshttps://www.redmine.org/issues/6568?journal_id=210072010-10-04T16:00:28ZVitaliy Ischenko
<ul></ul><p>I've forgotten to mention a link <a class="external" href="http://stackoverflow.com/questions/1989154/does-ruby-share-phps-multibyte-string-problem">http://stackoverflow.com/questions/1989154/does-ruby-share-phps-multibyte-string-problem</a></p> Redmine - Defect #6568: Custom field min_length and max_length checks and multibyte stringshttps://www.redmine.org/issues/6568?journal_id=210422010-10-05T13:33:01ZFelix Schäfer
<ul></ul><p>I can confirm this problem, but I think as rails3/ruby1.9 is "around the corner", there's no big motivation for the core redmine to get adapted, though what you propose seems to be the preferred way to solve that. If you want to contribute those fixes back, make sure the existing tests pass and create some new to test the multibyte characters.</p> Redmine - Defect #6568: Custom field min_length and max_length checks and multibyte stringshttps://www.redmine.org/issues/6568?journal_id=575782014-07-16T12:33:36ZGo MAEDA
<ul></ul><p>Current Redmine can handle multibyte strings right. This issue can be closed.</p> Redmine - Defect #6568: Custom field min_length and max_length checks and multibyte stringshttps://www.redmine.org/issues/6568?journal_id=581052014-08-15T01:35:00ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Wont fix</i></li></ul><p>It depends on Ruby 1.8 or not.<br />Ruby 1.8 support is dropped on Rails4.</p>