similar to: [PATCH] don't unnecessarily override methods for 1.9.2 in AS::Multibyte::Chars

Displaying 20 results from an estimated 2000 matches similar to: "[PATCH] don't unnecessarily override methods for 1.9.2 in AS::Multibyte::Chars"

2010 Jun 09
1
[patch] fix bytesize in exception template; multibyte titleize
Hi all, I wanted to draw some attention to a couple of very small multibyte-related patches I believe should be included before Rails 3.0 RC1: * Use String#bytesize rather than String#length in exception templates: This is a simple case where string length is checked, but bytes is needed, so it breaks with string with multibyte chars.
2010 May 10
6
feedback on a few ActiveSupport::Multibyte patches
Hi all, In response to Rodrigo Rosas''s message about mb_chars.upcase not giving the expected result on 1.9, I''ve done some work in a fork to make String#mb_chars always return an instance of a proxy class, both with Ruby 1.8 and Ruby 1.9. The end result of the patch is (hopefully) to make Rails'' multibyte functionality behave the same way in 1.8.7 and 1.9.x.
2010 May 08
19
mb_chars.upcase and Ruby 1.9.2
I''m testing ruby-head through rvm but can''t get ''ação''.mb_chars.upcase == ''AÇÃO''... I get ''AçãO'' instead... This happens both for Rails 2.3.5 and Rails 3 beta 3... How can I get upcase to work correctly? Thanks in advance, Rodrigo. -- You received this message because you are subscribed to the Google Groups "Ruby
2010 Nov 10
0
Problem with case statement and mb_chars in Ruby-1.9.2
RoR-3.0.1 I have this case statement: case n.hll_normalize when "common name" @my_correspondent.correspondent_common_name = s when "legal name" . . . else raise ArgumentError, "#{n} attribute is not provided for." end hll_normalize is defined as: def hll_normalise strip.squeeze(" ").mb_chars.downcase end I
2010 Jul 16
1
Rails 3 bug: undefined method `<=>' for class `ActiveSupport::Multibyte::Chars'
I''m getting the following bug when I try to run rake db:migrate in Rails 3 beta 4: $ rake db:migrate --trace (in C:/Users/Adam/Documents/Aptana Workspace/QuestionBank) default formats are encoded in ISO-8859-1 ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate == CreateUsers: migrating
2011 Dec 23
1
/gems/ZenTest-4.6.2/lib/autotest.rb:315:in `load': /Users/jayparteek/.autotest:7: invalid multibyte char (US-ASCII) (SyntaxError)
I am using latest version for rspec-rails, ZenTest. I am getting following error, when ever I try to run autotest. Please help -head at mhart6/gems/ZenTest-4.6.2/lib/autotest.rb:315:in `load'': /Users/ jayparteek/.autotest:7: invalid multibyte char (US-ASCII) (SyntaxError)
2008 Dec 15
1
Unicode problem with mb_chars.index
Hello, I tried the following str ="ÄÄa__" assert str.mb_chars.is_utf8? assert str.is_utf8? # this is logical assert_equal 4, str.index("a", 4) # this is not logical. shouldn''t this be nil !? assert_equal 2, str.mb_chars.index("a", 4) Why is the last line failing? And how could I fix this? Regards, Peter. PS: I am using ruby 1.8.6 on linux with rails
2010 Jul 19
3
ActiveRecord override
Would really appreciate it if someone could tell me why this is happening: I override ssn method of AR class so I can encrypt/decrypt to/from the db: class Person < ActiveRecord::Base def ssn=(value) write_attribute(:borrower_ssn, Crypto.encrypt(self.encryption_key, value)) write_attribute(:borrower_ssn_final_four, value[5,4]) end def ssn # this begin - rescue can be
2013 Jan 07
14
[Bug 2058] New: SSH Banner message displays UTF-8 multibyte char incorrrectly
https://bugzilla.mindrot.org/show_bug.cgi?id=2058 Bug ID: 2058 Summary: SSH Banner message displays UTF-8 multibyte char incorrrectly Classification: Unclassified Product: Portable OpenSSH Version: 6.1p1 Hardware: All OS: All Status: NEW Severity: normal Priority: P5
2009 Nov 13
3
Encoding::UTF_8 missing?
I''ve just done a fresh reinstall of OS X Snow Leopard on my mac, and I''m having all kinds of problems with Rails, but the latest problem has me stumped. Whenever I run rake db:seed to populate my database I hit the following error: ** Invoke db:seed (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:seed rake aborted! uninitialized constant
2010 Mar 18
1
capitalize and utf8 international symbols
Hi there, Being a relatively happy Rails user I suddenly noticed that string#capitalize and friends do not play well with international characters well. Sample console session: $ ./script/console Loading development environment (Rails 2.2.3) >> $KCODE => "UTF8" >> "яблоко".capitalize => "яблоко" Where "Яблоко" was expected (Russian word
2005 Mar 11
0
convert_string_allocate: Conversion error: Incomplete multibyte sequence
Hi all, I have installed samba on aix. I am trying to integrate with the ADS using winbind. I am able to join domain and retrieve the users and groups from the ADS. I am not able to login to the server with ADS user id and password. The winbindd.log has the following error. Please let me know what is the solution for this. ?lib/charcnv.c:convert_string_allocate(567) +
2005 Jun 17
2
Illegal multibyte sequence error in pdbedit output
dear list, in the output of pdbedit -L -v heupink I'm getting these errors: convert_string_allocate: Conversion error: Illegal multibyte sequence(???p? ????????) Any ideas where to look..? Are these serieus errors..? (it looks as if the errors occur BEFORE the actual ldap connection is opened, so I guess they're not ldap related...) My samba is 3.0.14a, and system is sles9 Below find
2008 Mar 23
1
Errors: Conversion error: Illegal multibyte sequence ...
Hello all, I'm running samba server ?3.0.25b-1.el4_6.4 on the Red Hat Enterprise Linux ES release 4 (Nahant Update 6). The server is set to be a part of the Windows AD domain. The domain name is IIS. In the /var/log/samba/wb-IIS.log I keep getting the messages similar to: [2008/03/23 09:01:01, 3] lib/charcnv.c:convert_string_internal(265) ? ? convert_string_internal: Conversion error:
2016 Nov 30
0
slow directory access, convert_string_internal: Conversion error: Incomplete multibyte sequence
On Tue, Nov 29, 2016 at 06:36:02PM -0500, Gaiseric Vandal via samba wrote: > Mail file is server is a member server is Samba 3.6.26 on Solaris > 11. It had been a BDC but a few week ago a switched it back to a > member server. The 2 current DC's had been running Samba 3.6.25 but > switched to Samba 4.4.7. This is a classic domain. > > > > Some Windows users
2012 Sep 25
2
OpenSSH banner doesnot display multibyte characters like korean
Hello, The banner message displayed on the screen contain octal values instead of korean chars. Prior to ssh 5.1 the banner message would display the charaters properly. I understand that starting from 5.1 the message is passed through strnvis() function. I looked into documentation on strnvis and found that it does not support multibyte chars and doesnt work well with international chars.
2011 Jun 20
2
convert_string_talloc: Conversion error: Incomplete multibyte sequence
My users are having a lot of problems since I upgraded a samba domain member server from samba-3.0.37 to 3.5.X. The main issue seems to be a very long delay loading office files (sometimes minutes if the file loads at all) and a lot of read only errors and users not being able to save. I have found that rebooting the client, restarting samba, or killing the users smbd process regains access to the
2008 Dec 30
1
issue with encoding in R-2.8.1 invalid multibyte character
Hi, We recently switched from R2.7.0 to R2.8.1 but having problems tracking down this 'invalid multibyte character' encoding issue. Can someone point us how to solve this? > sessionInfo() R version 2.8.1 (2008-12-22) x86_64-unknown-linux-gnu locale:
2005 May 31
1
Illegal multibyte character ...
Dear Sirs, I'm running samba in utf-8/utf-8 mode (unix charset/display charset), clients are: Windows XP/RUS, files and directories are created by clients directly, so samba says: [2005/05/30 20:12:01, 3] smbd/open.c:open_file(178) Error opening file profile/?????????\x87???? ?\x81?\x82????12 (Is a directory) (local_flags=1) (flags=1) [2005/05/30 20:12:01, 3]
2014 Jul 07
1
Conversion error: Incomplete multibyte sequence
Hello, I tried the migration from samba 3 to a sernet-samba-ad-4.1.9-8. My samba 3 has tdbsam backend, and "Full Name" (pdbedit -Lv) contains umlauts. If I run /usr/bin/samba-tool domain classicupgrade, I will see error: "Conversion error: Incomplete multibyte sequence" I had in my old smb.conf: display charset = iso8859-2 dos charset = cp852 unix charset = iso8859-2 In