search for: is_utf8

Displaying 11 results from an estimated 11 matches for "is_utf8".

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...
2011 Dec 16
5
[Bug 8666] New: --debug=all9 fail
...b71 in send_msg (code=MSG_INFO, buf=0x7fffa60c7da0 "[receiver] perform_io(60, msgroom) needs to flush 33\n", len=53, convert=0) at ../rsync/io.c:955 #3 0x0000000000429840 in rwrite (code=FINFO, buf=0x7fffa60c7da0 "[receiver] perform_io(60, msgroom) needs to flush 33\n", len=53, is_utf8=0) at ../rsync/log.c:277 #4 0x0000000000429f37 in rprintf (code=FINFO, format=0x46c8c8 "[%s] perform_io(%ld, msgroom) needs to flush %ld\n") at ../rsync/log.c:433 #5 0x0000000000434996 in perform_io (needed=60, flags=4) at ../rsync/io.c:608 ...and so on ad-infinitum. If the rprintf() a...
2012 Dec 14
0
[Bug 9502] New: Deamon deadlock at stop (SIGINT caught)
...002b968915017a in __fopen_internal () from /lib64/libc.so.6 #4 0x000000000041ff92 in logfile_open () at log.c:153 #5 0x000000000041e8ec in logit (code=FERROR, buf=0x7fff3cfc2060 "rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(545) [Receiver=3.0.7]\n", len=92, is_utf8=0) at log.c:116 #6 rwrite (code=FERROR, buf=0x7fff3cfc2060 "rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(545) [Receiver=3.0.7]\n", len=92, is_utf8=0) at log.c:285 #7 0x000000000041ede5 in rprintf (code=FERROR, format=0x4471b0 "rsync error: %s (cod...
2023 Jul 03
0
[PATCH] Add option --log-after to log after moving file into place
...7 @@ extern mode_t orig_umask; extern char *auth_user; extern char *stdout_format; extern char *logfile_format; +extern char *logafter_format; extern char *logfile_name; #ifdef ICONV_CONST extern iconv_t ic_chck; @@ -271,6 +272,8 @@ void rwrite(enum logcode code, const char *buf, int len, int is_utf8) * that the msg gets logged and then sent to stderr after that. */ if (am_daemon > 0 && code != FCLIENT) code = FLOG; + } else if (code == FLOG_AFTER) { + code = FLOG; } else if (send_msgs_to_gen) { assert(!is_utf8); /* Pass the message to our sibling in native charse...
2015 Jun 17
8
[Bug 11338] New: Rsync Crash - Segmentation fault
https://bugzilla.samba.org/show_bug.cgi?id=11338 Bug ID: 11338 Summary: Rsync Crash - Segmentation fault Product: rsync Version: 3.1.1 Hardware: x64 OS: Linux Status: NEW Severity: normal Priority: P5 Component: core Assignee: wayned at samba.org Reporter:
2016 Jan 21
1
[Bug 11683] New: hang on select when send many files
...409 fullbak\n", len=147, convert=0) at io.c:958 #3 0x00000000004218a0 in rwrite (code=FLOG, buf=0x7fff8ed87400 "10.126.100.201 682364 tjtx-100-200_20160121_135901/aifang_dw/contract_snapshot_detail_20151103.MYD 682244 2015/12/05-18:53:33 recv 114409 fullbak\n", len=147, is_utf8=0) at log.c:277 #4 0x000000000042299c in log_formatted (code=FLOG, format=<value optimized out>, op=0x45170a "recv", file=0x7f976a8cb360, fname=0x0, iflags=40960, hlink=0x0) at log.c:769 #5 0x0000000000422eaa in log_item (code=FINFO, file=0x7f976a8cb360, iflags=40960, hlink=0x0) a...
2007 Feb 15
0
Encoding API
...e current LC_CTYPE encoding (using Rf_translateChar()), and then translate to UTF-8 in a second step (using custom means, if needed), being able to do this conversion in a single step would be more elegant, and also potentially avoid expensive recoding steps. Alternatively, having access to the IS_UTF8 and IS_LATIN1 macros from C would be good enough to hand-code efficient conversion to UTF-8 (but may be too close to the internals). Not sure, whether this is considered important enough to warant inclusion in the API, but I just wanted to throw in the idea in time. Regards Thomas Friedrichsme...
2011 Jun 17
7
Encoding
What''s a good solution for fixing character encoding problems for compatibility between ascii and utf-8? The database is postgres and is encoded in utf-8. Once in awhile there will be a compatibility error from strings from a webform. Is there a command to fix this besides using a_string.force_encoding(''utf-8'')? Even this doesn''t seem to always work either.
2013 Apr 16
7
[Bug 9798] New: rsync crash with SIGSEGV when read time out happens
...fffb068) at iconv.c:53 #4 0x08050f6d in iconvbufs (ic=0x80a2fe0, in=0xbfffb4a0, out=0xbfffb4b0, flags=0) at rsync.c:175 #5 0x080630e6 in rwrite (code=3086884128, buf=0xbfffbcf0 "rsync error: error in rsync protocol data stream (code 12) at io.c(635) [receiver=3.0.2]\n", len=-1073761120, is_utf8=0) at log.c:339 #6 0x080632fc in rprintf (code=FERROR, format=0x8083c20 "rsync error: %s (code %d) at %s(%d) [%s=%s]\n") at log.c:398 #7 0x08064107 in log_exit (code=12, file=0x80895e0 "io.c", line=134780384) at log.c:829 #8 0x08058b1d in _exit_cleanup (code=12, file=0x80895e...
2017 Apr 10
3
error allocating core memory buffers (code 22) at util2.c(106) [sender=3.1.2]
Hi: I'm in the middle of recoverying from a tactical error copying around an Mac OS X 10.10.5 Time Machine backup (turns out Apple's instructions aren't great...), and I had rsync running for the past 6 hours repairing permissions/acls on 1.5 TB of data (not copying the data), and then it just died in the middle with: .L....og.... 2015-03-11-094807/platinum-bar2/usr/local/mysql
2006 Oct 02
22
Multi Byte Strings
Hey guys, We''ve been talking about the multi-byte patch and I think it''s time to get feedback from you guys on a possible way forward. We can include ActiveSupport::Multibyte with rails 1.2, and update all of the relevant helpers to use the String#chars proxy. This will mean that none of the action view helpers will mangle multibyte strings. Similarly, if any Strings are being