fanantoxa (Anton Sivakov)
- Login: fanantoxa
- Registered on: 03/20/2016
- Last sign in: 07/30/2023
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 5 | 5 |
Activity
11/14/2017
-
11:47 PM Ruby Bug #14107 (Rejected): Enumerable#each_with_object partly mutate object
- Hi. I was working with `each_with_object` and found a bug.
I was needed to iterate through the array and have an memo object at the same time so I've tried to use next code:
Here is an array:
~~~ruby
d = [1, 2, 3, 4, 5, 6, 7]
~~...
06/07/2017
-
05:58 PM Ruby Bug #12203: dumper.c static int yaml_emitter_dump_scalar two variables have the same value
- shyouhei (Shyouhei Urabe) wrote:
> They are passed to a macro. I guess the author intentionally separated these two because merging them makes the code less intuitive. It seems OK to be optimized.
Maybe reassign to someone else? Or...
06/06/2017
-
10:08 PM Ruby Bug #13636: REXML::Document.parse_stream doesn't handle when closing tag not provided
- Expected to get exception for xml3 example
-
09:35 PM Ruby Bug #13636 (Closed): REXML::Document.parse_stream doesn't handle when closing tag not provided
- I've tried to use REXML for parsing but got unexpected behavior:
Here is example:
~~~ ruby
require 'rexml/document'
require 'rexml/streamlistener'
class Handler include REXML::StreamListener end
xml1 = StringIO.new("<body><...
04/04/2016
-
10:35 AM Ruby Bug #12202: nkf.c static void mime_putc the variable being used for loop used for outer loop too
- Yui NARUSE wrote:
> Applied in changeset r54423.
> ...
Hi. I saw your changes and now it's:
...
for (j=0;i<mimeout_state.count;j++) {
(*o_mputc)(mimeout_state.buf[j]);
...
Now you're using 'j' but on condition you still using...
03/25/2016
-
08:05 PM Ruby Bug #12202: nkf.c static void mime_putc the variable being used for loop used for outer loop too
- Shyouhei Urabe wrote:
> This is (surprisingly) safe, because that `mimeout_state.count = 0;` line purposefully terminates outer loop. It works as expected; just in a ultimately complicated way.
Is this ok? It can be complicated for ...
03/20/2016
-
12:29 PM Ruby Bug #12203 (Third Party's Issue): dumper.c static int yaml_emitter_dump_scalar two variables have the same value
- ~~~
static int
yaml_emitter_dump_scalar(
.....
int plain_implicit = (strcmp((char *)node->tag,
YAML_DEFAULT_SCALAR_TAG) == 0);
int quoted_implicit = (strcmp((char *)node->tag,
YAML_DEFAULT_SCALAR_TAG... -
12:22 PM Ruby Bug #12202 (Closed): nkf.c static void mime_putc the variable being used for loop used for outer loop too
- ~~~
for (i=0;i<mimeout_state.count;i++) {
if (SP<mimeout_state.buf[i] && mimeout_state.buf[i]<DEL) {
eof_mime();
for (i=0;i<mimeout_state.count;i++) {
(*o_mputc)(mimeout_state.buf[i]);
base64_count++;
}
... -
12:12 PM Ruby Bug #12201 (Closed): nkf.c static void fold_conv part of exression always true
- ~~~
/* new line */
if (fold_preserve_f) {
f_prev = c1;
f_line = 0;
fold_state = CR;
} else if ((f_prev == c1 && !fold_preserve_f)
|| (f_prev == LF && fold_preserve_f)
) { /* duplicate newline */
...