public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59598] New: very simple code using file open for read
@ 2013-12-25 16:56 lirex.software at gmail dot com
  2013-12-25 16:57 ` [Bug c++/59598] " lirex.software at gmail dot com
                   ` (56 more replies)
  0 siblings, 57 replies; 58+ messages in thread
From: lirex.software at gmail dot com @ 2013-12-25 16:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

            Bug ID: 59598
           Summary: very simple code using file open for read
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lirex.software at gmail dot com

this portion of the code works ONLY IF the code line "characters_count++;" is
absent:
    characters_count=0;    

    stream = fopen (argv[1],"r");

    while ((c = fgetc(stream)) != EOF) 

    {    
        characters_count++;
        printf("total characters are %s\n", characters_count);
    }


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
@ 2013-12-25 16:57 ` lirex.software at gmail dot com
  2013-12-25 16:59 ` lirex.software at gmail dot com
                   ` (55 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: lirex.software at gmail dot com @ 2013-12-25 16:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #1 from Denis Kolesnik <lirex.software at gmail dot com> ---
Created attachment 31512
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31512&action=edit
C++ source file


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
  2013-12-25 16:57 ` [Bug c++/59598] " lirex.software at gmail dot com
@ 2013-12-25 16:59 ` lirex.software at gmail dot com
  2013-12-25 17:08 ` pinskia at gcc dot gnu.org
                   ` (54 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: lirex.software at gmail dot com @ 2013-12-25 16:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #2 from Denis Kolesnik <lirex.software at gmail dot com> ---
echo off

PATH=%PATH%;c:\MinGW\bin;C:\MinGW\x86_64-w64-mingw32\bin



set application_file=main_app2

gcc replace_1.c


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
  2013-12-25 16:57 ` [Bug c++/59598] " lirex.software at gmail dot com
  2013-12-25 16:59 ` lirex.software at gmail dot com
@ 2013-12-25 17:08 ` pinskia at gcc dot gnu.org
  2013-12-25 17:12 ` Denis.V.Kolesnik@safe-mail.net
                   ` (53 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-12-25 17:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With -W -Wall you get some warnings which expose what is going wrong:
t.c: In function ‘main’:
t.c:46: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type
‘int’
t.c:49: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type
‘int’

Using %d instead works.
>From gcc-bugs-return-438504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Dec 25 17:11:11 2013
Return-Path: <gcc-bugs-return-438504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20117 invoked by alias); 25 Dec 2013 17:11:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20095 invoked by uid 48); 25 Dec 2013 17:11:07 -0000
From: "Denis.V.Kolesnik@safe-mail.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59598] very simple code using file open for read
Date: Wed, 25 Dec 2013 17:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: Denis.V.Kolesnik@safe-mail.net
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59598-4-wxrGoW3mnM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59598-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59598-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-12/txt/msg02159.txt.bz2
Content-length: 161

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY598

--- Comment #4 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
MY OS is MS Windows 8.1 64x licensed


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (2 preceding siblings ...)
  2013-12-25 17:08 ` pinskia at gcc dot gnu.org
@ 2013-12-25 17:12 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-26 19:51 ` Denis.V.Kolesnik@safe-mail.net
                   ` (52 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-25 17:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #5 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
thanks my mind possibly poisoned by some mushrooms(not by me), that is why I do
not notice such simple things and can not find it.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (3 preceding siblings ...)
  2013-12-25 17:12 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-26 19:51 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-26 19:57 ` Denis.V.Kolesnik@safe-mail.net
                   ` (51 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-26 19:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #6 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
please tell me where in this corrected code I made mistake:>



// a small text file filter.c //

#include <stdio.h>



main(int argc, char* argv[])

{


    char c, previous_c;       

    int word_begin_position[3000];


    int spec_symbol[7]={0xAE,0xBB,0xAB,0xA9,0x22,0x2F,0x27};


    int eof_symbol[2]={0x0D,0x0A};
    int search_result;

    int this_is_the_same_word;
    int words_count;
    int word_number;

    int search_result_A_count;
    int search_result_space;

    FILE *stream,*stream2;


    int i, j, characters_count, character_number;



    characters_count=0;    

    stream = fopen (argv[1],"r");

    while ((c = fgetc(stream)) != EOF) 

    {    
        characters_count++;

    }
    fclose(stream);
    //printf("total characters are %i\n", characters_count); 


    character_number=1;
    words_count=0;
    previous_c=0;


    stream = fopen (argv[1],"r");

    while ((c = fgetc(stream)) != EOF) 

    {
        if(((c!=0x20) && (character_number==1)) || ((previous_c==0x20) &&
(c!=0x20) && (c!=0x0A)) || ((previous_c!=0x20) && (c==0x0D)) || ((c!=0x20) &&
(c!=0x0D) && (c!=0x0A) && (previous_c==0x0A)) || ((previous_c!=0x20) &&
(previous_c!=0x0A) && (character_number==characters_count) && (c==0x20)))

//        1. ((c!=0x20) && (character_number==1))
//        2. ((previous_c==0x20) && (c!=0x20) && (c!=0x0A))
//        3. ((previous_c!=0x20) && (c==0x0D))
//        !((previous_c!=0x0D) && (c==0x0A))
//        4. ((c!=0x20) && (c!=0x0D) && (c!=0x0A) && (previous_c==0x0A))
//        5. ((previous_c!=0x20) && (previous_c!=0x0A) &&
(character_number==characters_count) && (c==0x20))

            this_is_the_same_word=0;
        else
            this_is_the_same_word=1;

        if(this_is_the_same_word==0)
        {
            words_count++;            
            word_begin_position[words_count]=character_number;

            //printf(" the begin char is .....
%i",word_begin_position[words_count]);
        }

    //if(character_number==characters_count)
    //    printf("the last character");
/*
    printf(" the number of words is %i\n", words_count);
    printf(" the current character is ..... %c\n", c);
    if(c==0x0D)
        printf(" the current character is ..... 0x0D\n");
    if(c==0x0A)
        printf(" the current character is ..... 0x0A\n");
*/
        previous_c=c;
        character_number++;
    }
    fclose(stream);



    word_number=1;    
    character_number=1;
    stream = fopen (argv[1],"r");

    //stream2 = fopen (argv[2],"w");

    while ((c = fgetc(stream)) != EOF) 

    {    
        //if((character_number >= word_begin_position[word_number]) &&
(character_number <= word_begin_position[word_number+1]))
        if(c==0x0D)
        then
        {
            //fprintf(stream2,"%s", "\\r\\n");
//            if(c==EOF)
//            then 
//                printf("A");
//            else
//                printf("%s",c);
            printf("%s", c);
        }
//        else
//            word_number++;

        character_number++;
    }
    fclose(stream);
    //printf(" the number of words is %i", words_count);



    return 0;

}



why this portion of code:> 



if(c==0x0D)
        then
        {
            //fprintf(stream2,"%s", "\\r\\n");
//            if(c==EOF)
//            then 
//                printf("A");
//            else
//                printf("%s",c);
            printf("%s", c);
        }
//        else
//            word_number++;



reports:>



replace_1.c: In function 'main':
replace_1.c:112:3: error: 'then' undeclared (first use in this function)
replace_1.c:112:3: note: each undeclared identifier is reported only once for
ea
ch function it appears in
replace_1.c:113:3: error: expected ';' before '{' token


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (4 preceding siblings ...)
  2013-12-26 19:51 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-26 19:57 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-26 19:58 ` Denis.V.Kolesnik@safe-mail.net
                   ` (50 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-26 19:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #7 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
I found my error, sorry for it.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (5 preceding siblings ...)
  2013-12-26 19:57 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-26 19:58 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-26 19:58 ` Denis.V.Kolesnik@safe-mail.net
                   ` (49 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-26 19:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
I found my mistake


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (6 preceding siblings ...)
  2013-12-26 19:58 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-26 19:58 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-26 19:59 ` Denis.V.Kolesnik@safe-mail.net
                   ` (48 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-26 19:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID

--- Comment #9 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
I found my mistake


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (7 preceding siblings ...)
  2013-12-26 19:58 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-26 19:59 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-26 20:11 ` Denis.V.Kolesnik@safe-mail.net
                   ` (47 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-26 19:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #10 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
:>
the "then" is obivious,


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (8 preceding siblings ...)
  2013-12-26 19:59 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-26 20:11 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-26 20:32 ` pinskia at gcc dot gnu.org
                   ` (46 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-26 20:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #11 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
why in this code:>



// a small text file filter.c //

#include <stdio.h>





main(int argc, char* argv[])

{


    char c, previous_c;       

    int word_begin_position[3000];


    int spec_symbol[7]={0xAE,0xBB,0xAB,0xA9,0x22,0x2F,0x27};


    int eof_symbol[2]={0x0D,0x0A};
    int search_result;

    int this_is_the_same_word;
    int words_count;
    int word_number;

    int search_result_A_count;
    int search_result_space;

    FILE *stream,*stream2;


    int i, j, characters_count, character_number;



    characters_count=0;    

    stream = fopen (argv[1],"r");

    while ((c = fgetc(stream)) != EOF) 

    {    
        characters_count++;

    }
    fclose(stream);
    //printf("total characters are %i\n", characters_count); 


    character_number=1;
    words_count=0;
    previous_c=0;


    stream = fopen (argv[1],"r");

    while ((c = fgetc(stream)) != EOF) 

    {
        if(((c!=0x20) && (character_number==1)) || ((previous_c==0x20) &&
(c!=0x20) && (c!=0x0A)) || ((previous_c!=0x20) && (c==0x0D)) || ((c!=0x20) &&
(c!=0x0D) && (c!=0x0A) && (previous_c==0x0A)) || ((previous_c!=0x20) &&
(previous_c!=0x0A) && (character_number==characters_count) && (c==0x20)))

//        1. ((c!=0x20) && (character_number==1))
//        2. ((previous_c==0x20) && (c!=0x20) && (c!=0x0A))
//        3. ((previous_c!=0x20) && (c==0x0D))
//        !((previous_c!=0x0D) && (c==0x0A))
//        4. ((c!=0x20) && (c!=0x0D) && (c!=0x0A) && (previous_c==0x0A))
//        5. ((previous_c!=0x20) && (previous_c!=0x0A) &&
(character_number==characters_count) && (c==0x20))

            this_is_the_same_word=0;
        else
            this_is_the_same_word=1;

        if(this_is_the_same_word==0)
        {
            words_count++;            
            word_begin_position[words_count]=character_number;

            //printf(" the begin char is .....
%i",word_begin_position[words_count]);
        }

    //if(character_number==characters_count)
    //    printf("the last character");
/*
    printf(" the number of words is %i\n", words_count);
    printf(" the current character is ..... %c\n", c);
    if(c==0x0D)
        printf(" the current character is ..... 0x0D\n");
    if(c==0x0A)
        printf(" the current character is ..... 0x0A\n");
*/
        previous_c=c;
        character_number++;
    }
    fclose(stream);



    word_number=1;    
    character_number=1;
    stream = fopen (argv[1],"r");

    //stream2 = fopen (argv[2],"w");

    while ((c = fgetc(stream)) != EOF) 

    {    
        if((character_number >= word_begin_position[word_number]) &&
(character_number <= word_begin_position[word_number+1]))
        {
            if(c==0x0D)
                printf("A");
            else
                printf("%s", c);
        }
//        else
//            word_number++;

        character_number++;
    }
    fclose(stream);
    //printf(" the number of words is %i", words_count);



    return 0;

}



the portion:>



if(c==0x0D)
                printf("A");
            else
                printf("%s", c);



results in error while program run??


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (9 preceding siblings ...)
  2013-12-26 20:11 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-26 20:32 ` pinskia at gcc dot gnu.org
  2013-12-26 20:34 ` Denis.V.Kolesnik@safe-mail.net
                   ` (45 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-12-26 20:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You want %c.  This is not the correct place to ask questions about C
programming.  This is a place to report bugs in GCC.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (10 preceding siblings ...)
  2013-12-26 20:32 ` pinskia at gcc dot gnu.org
@ 2013-12-26 20:34 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 15:07 ` Denis.V.Kolesnik@safe-mail.net
                   ` (44 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-26 20:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #13 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
(In reply to Andrew Pinski from comment #12)
> You want %c.  This is not the correct place to ask questions about C
> programming.  This is a place to report bugs in GCC.



:>
thanks for help


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (11 preceding siblings ...)
  2013-12-26 20:34 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 15:07 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 17:01 ` schwab@linux-m68k.org
                   ` (43 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 15:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #14 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
In the following code:>



// a small text file filter.c //

#include <stdio.h>





main(int argc, char* argv[])

{


    char c, previous_c;       

    int word_begin_position[3000];


    int spec_symbol[7]={0xAE,0xBB,0xAB,0xA9,0x22,0x2F,0x27};


    int eof_symbol[2]={0x0D,0x0A};
    int search_result;

    int this_is_the_same_word;
    int words_count;
    int word_number;

    int search_result_A_count;
    int search_result_space;

    FILE *stream,*stream2;


    int i, j, characters_count, character_number;
    int other_character_printed;


    // double characters
    int A_count, E_count;



    characters_count=0;    

    stream = fopen (argv[1],"r");

    while ((c = fgetc(stream)) != EOF) 

    {    
        characters_count++;

    }
    fclose(stream);
    //printf("total characters are %i\n", characters_count); 


    character_number=1;
    words_count=0;
    previous_c=0;


    stream = fopen (argv[1],"r");

    while ((c = fgetc(stream)) != EOF) 

    {
        if(((c!=0x20) && (character_number==1)) || ((previous_c==0x20) &&
(c!=0x20) && (c!=0x0A)) || ((previous_c!=0x20) && (c==0x0D)) || ((c!=0x20) &&
(c!=0x0D) && (c!=0x0A) && (previous_c==0x0A)) || ((previous_c!=0x20) &&
(previous_c!=0x0A) && (character_number==characters_count) && (c==0x20)))

//        1. ((c!=0x20) && (character_number==1))
//        2. ((previous_c==0x20) && (c!=0x20) && (c!=0x0A))
//        3. ((previous_c!=0x20) && (c==0x0D))
//        !((previous_c!=0x0D) && (c==0x0A))
//        4. ((c!=0x20) && (c!=0x0D) && (c!=0x0A) && (previous_c==0x0A))
//        5. ((previous_c!=0x20) && (previous_c!=0x0A) &&
(character_number==characters_count) && (c==0x20))

            this_is_the_same_word=0;
        else
            this_is_the_same_word=1;

        if(this_is_the_same_word==0)
        {
            words_count++;            
            word_begin_position[words_count]=character_number;

            //printf(" the begin char is .....
%i",word_begin_position[words_count]);
        }

    //if(character_number==characters_count)
    //    printf("the last character");
/*
    printf(" the number of words is %i\n", words_count);
    printf(" the current character is ..... %c\n", c);
    if(c==0x0D)
        printf(" the current character is ..... 0x0D\n");
    if(c==0x0A)
        printf(" the current character is ..... 0x0A\n");
*/
        previous_c=c;
        character_number++;
    }
    fclose(stream);



    word_number=1;    
    character_number=1;

    A_count=1;
    E_count=1;

    stream = fopen (argv[1],"r");

    //stream2 = fopen (argv[2],"w");

    while ((c = fgetc(stream)) != EOF) 

    {    

        other_character_printed=0;
        if((character_number >= word_begin_position[word_number]) &&
(character_number <= word_begin_position[word_number+1]) )
        {
            if(((c=='a') || (c=='а') || (c=='A') || (c=='А')) )
            {
            if(A_count==1)
                {
                    printf("A1");
                    A_count=2;
                    other_character_printed=1;
                }
                else
                {
                    printf("A2");
                    A_count=1;
                    other_character_printed=1;
                }
            }
            else
            if((other_character_printed==0) && ((c!='е') && (c!='e') &&
(c!='Е') && (c!='E')))
            {
                printf("%c", c);
                other_character_printed=1;
            }

            if((c=='e') || (c=='е') || (c=='Е') || (c=='E'))
            {
            if(E_count==1)
                {
                    printf("E1");
                    E_count=2;
                    other_character_printed=1;
                }
                else
                {
                    printf("E2");
                    E_count=1;
                    other_character_printed=1;
                }

            }
            else
            if((other_character_printed==0) && (((c=='a') & (c=='а') &&
(c=='A') && (c=='А'))))
            {
                printf("%c", c);
                other_character_printed=1;
            }
        }
        else
        {
            A_count=1;
            E_count=1;
            word_number++;

        }

        character_number++;
    }
    fclose(stream);
    //printf(" the number of words is %i", words_count);



    return 0;

}



why other characters representing number are displayed to the screen except
"0"?
when the input text file is of the cintent:
ARSeNALE 2012 ARSENALE



It is a bug and nothing else! Nowhere in my code is stated to ignore "0"



--
>From gcc-bugs-return-438647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Dec 28 15:09:59 2013
Return-Path: <gcc-bugs-return-438647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24051 invoked by alias); 28 Dec 2013 15:09:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24033 invoked by uid 48); 28 Dec 2013 15:09:55 -0000
From: "Denis.V.Kolesnik@safe-mail.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59598] very simple code using file open for read
Date: Sat, 28 Dec 2013 15:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.6.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: Denis.V.Kolesnik@safe-mail.net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59598-4-g4Jcak5xj4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59598-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59598-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-12/txt/msg02302.txt.bz2
Content-length: 199

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY598

--- Comment #15 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
the output line is:>
A1RSE1NA2LE2 212 A1
should be:>
A1RSE1NA2LE2 2012 A1


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (12 preceding siblings ...)
  2013-12-28 15:07 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 17:01 ` schwab@linux-m68k.org
  2013-12-28 17:18 ` Denis.V.Kolesnik@safe-mail.net
                   ` (42 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: schwab@linux-m68k.org @ 2013-12-28 17:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #16 from Andreas Schwab <schwab@linux-m68k.org> ---
We are not going to debug your code.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (13 preceding siblings ...)
  2013-12-28 17:01 ` schwab@linux-m68k.org
@ 2013-12-28 17:18 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 19:31 ` pinskia at gcc dot gnu.org
                   ` (41 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 17:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #17 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
please specify the reason for your demand? I can not see anything I missed in
my code!!


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (14 preceding siblings ...)
  2013-12-28 17:18 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 19:31 ` pinskia at gcc dot gnu.org
  2013-12-28 21:56 ` Denis.V.Kolesnik@safe-mail.net
                   ` (40 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-12-28 19:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Again this is not a place to learn c programming or get help to debug your
code.  This is a place to report bugs against GCC and I don't see a bug here.
There are other places on the internet to get c programming help.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (15 preceding siblings ...)
  2013-12-28 19:31 ` pinskia at gcc dot gnu.org
@ 2013-12-28 21:56 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 21:58 ` Denis.V.Kolesnik@safe-mail.net
                   ` (39 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 21:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #19 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
I do not have errors in my core: other characters processed except '0'. This is
a bug!


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (16 preceding siblings ...)
  2013-12-28 21:56 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 21:58 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 22:00 ` Denis.V.Kolesnik@safe-mail.net
                   ` (38 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 21:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #20 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
'0' is not 'a' in 2 languages and not 'e' in 2 languages in both: small or
capital  variants


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (17 preceding siblings ...)
  2013-12-28 21:58 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 22:00 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 22:03 ` Denis.V.Kolesnik@safe-mail.net
                   ` (37 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 22:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #21 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
Even all characters, which are numeric are processed except '0'. This is a bug!
I do not violate eny C++ rules and I do not receive even any messages while
compilation. This is a bug. You can not hide the truth!


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (18 preceding siblings ...)
  2013-12-28 22:00 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 22:03 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 22:55 ` ktietz at gcc dot gnu.org
                   ` (36 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 22:03 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #22 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
I know that this is not a place to report programming problems, but I do not
see errors in my code....


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (19 preceding siblings ...)
  2013-12-28 22:03 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 22:55 ` ktietz at gcc dot gnu.org
  2013-12-28 22:59 ` Denis.V.Kolesnik@safe-mail.net
                   ` (35 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-12-28 22:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ktietz at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #23 from Kai Tietz <ktietz at gcc dot gnu.org> ---
First, don't be so self-righteous. Your program has more then one bug ... for
sure you need to learn this language better ...  within this code there are at
least two major logical failures, and one serious array out-of-bounds access on
uninitialized data, and your coding-style is simply poor.  The C language isn't
Lisp, you don't need that much frames, neither you don't need to repeat within
on logical expression the prior expression ... it just makes code unreadable
... anyway

I won't tell you your bugs, as I am assuming your are a rooky student trying to
learn C and I don't want to destroy the sense of your teachers lesson.

So I close this bug as invalid, as it is ...


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (20 preceding siblings ...)
  2013-12-28 22:55 ` ktietz at gcc dot gnu.org
@ 2013-12-28 22:59 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 23:01 ` ktietz at gcc dot gnu.org
                   ` (34 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 22:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #24 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
Mister,



I have had tragedies in my life, that is why I do not want to make politica
with all. It is a bug and I described why.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (21 preceding siblings ...)
  2013-12-28 22:59 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 23:01 ` ktietz at gcc dot gnu.org
  2013-12-28 23:02 ` Denis.V.Kolesnik@safe-mail.net
                   ` (33 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-12-28 23:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #25 from Kai Tietz <ktietz at gcc dot gnu.org> ---
It is none.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (22 preceding siblings ...)
  2013-12-28 23:01 ` ktietz at gcc dot gnu.org
@ 2013-12-28 23:02 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 23:07 ` ktietz at gcc dot gnu.org
                   ` (32 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 23:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #26 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
My code has no errors. It is a bug.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (23 preceding siblings ...)
  2013-12-28 23:02 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 23:07 ` ktietz at gcc dot gnu.org
  2013-12-28 23:12 ` Denis.V.Kolesnik@safe-mail.net
                   ` (31 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-12-28 23:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #27 from Kai Tietz <ktietz at gcc dot gnu.org> ---
.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (24 preceding siblings ...)
  2013-12-28 23:07 ` ktietz at gcc dot gnu.org
@ 2013-12-28 23:12 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 23:13 ` Denis.V.Kolesnik@safe-mail.net
                   ` (30 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 23:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|WONTFIX                     |---

--- Comment #28 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
commenting gives no change:>



//int spec_symbol[7]={0xAE,0xBB,0xAB,0xA9,0x22,0x2F,0x27};


    //int eof_symbol[2]={0x0D,0x0A};



other the only one array is declared fully correct as stated at "C How to
Program" H.M. Deitel Nove University Deitel and Associates P. J. Deitel Deitel
Associates


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (25 preceding siblings ...)
  2013-12-28 23:12 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 23:13 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 23:17 ` Denis.V.Kolesnik@safe-mail.net
                   ` (29 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 23:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #29 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
My code style has nothing to do with it. I even do not tell, that I do not
fully like the interface of this site!!


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (26 preceding siblings ...)
  2013-12-28 23:13 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 23:17 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 23:18 ` Denis.V.Kolesnik@safe-mail.net
                   ` (28 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 23:17 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #30 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
I use the elements of the array fully correct:> 
int word_begin_position[3000];


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (27 preceding siblings ...)
  2013-12-28 23:17 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 23:18 ` Denis.V.Kolesnik@safe-mail.net
  2013-12-28 23:25 ` ktietz at gcc dot gnu.org
                   ` (27 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-28 23:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #31 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
Your arguments are based on what?? I argued my arguments!


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (28 preceding siblings ...)
  2013-12-28 23:18 ` Denis.V.Kolesnik@safe-mail.net
@ 2013-12-28 23:25 ` ktietz at gcc dot gnu.org
  2013-12-29 12:59 ` Denis.V.Kolesnik@safe-mail.net
                   ` (26 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-12-28 23:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #32 from Kai Tietz <ktietz at gcc dot gnu.org> ---
(In reply to Denis Kolesnik from comment #29)
> My code style has nothing to do with it. I even do not tell, that I do not
> fully like the interface of this site!!

Well, you coding-style and ability is poor.  Believe me. I wasn't referring to
those none-used arrays.

Think about this if-line in your second sample.  It contains the out of bounds
access:

...
        if((character_number >= word_begin_position[word_number]) &&
(character_number <= word_begin_position[word_number+1]) )
...

What is word_begin_position[word_number+1]???  Imagine you are within the final
word in your file.  The value at this position isn't initialized and therefore
contains random number.
Btw here in this line is also one of the logical failures you made.  Why your
if-condition includes first character of next word?

So you mights see, or I fear you won't, that your program has more then one bug
and therefore this is a invalid bug-report of gcc.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (29 preceding siblings ...)
  2013-12-28 23:25 ` ktietz at gcc dot gnu.org
@ 2013-12-29 12:59 ` Denis.V.Kolesnik@safe-mail.net
  2014-01-28 17:45 ` Denis.V.Kolesnik@safe-mail.net
                   ` (25 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2013-12-29 12:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #33 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
I found where an error in my code, corrected it and till yet it functions
normally. Sorry for my misunderstanding. On alone I could not find an error in
my code. I know, that you say it is not the place to report a bug, but I was
sure my code is correct.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (30 preceding siblings ...)
  2013-12-29 12:59 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-01-28 17:45 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-03 15:27 ` Denis.V.Kolesnik@safe-mail.net
                   ` (24 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-01-28 17:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #35 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
it works with every russian letter except small letter "ya", I consider it as a
bug.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (31 preceding siblings ...)
  2014-01-28 17:45 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-03 15:27 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-04  8:27 ` redi at gcc dot gnu.org
                   ` (23 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-03 15:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |major


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (32 preceding siblings ...)
  2014-02-03 15:27 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-04  8:27 ` redi at gcc dot gnu.org
  2014-02-08 17:02 ` Denis.V.Kolesnik@safe-mail.net
                   ` (22 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: redi at gcc dot gnu.org @ 2014-02-04  8:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID
           Severity|major                       |normal

--- Comment #36 from Jonathan Wakely <redi at gcc dot gnu.org> ---
GCC's Bugzilla is not here to debug your programs, please stop re-opening this.
Try posting your code at stackoverflow.com instead where someone might be
willing and able to tell you what's wrong, but you will need to say more than
"it works".


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (33 preceding siblings ...)
  2014-02-04  8:27 ` redi at gcc dot gnu.org
@ 2014-02-08 17:02 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-08 17:05 ` Denis.V.Kolesnik@safe-mail.net
                   ` (21 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-08 17:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #37 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
you are not right in the following: I did not visit sites where would be fair
to contaminate my software with viruses and similar code and I do trust(not
fully, but enough) to Microsoft support because of their reputation. And
Microsoft claims to defend of such problems. Did I wrote here something wrong?
Wait I will check now again after I did reinstall my system.

I do not think, that I'm wrong here and that my guilt in this problems is most.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (34 preceding siblings ...)
  2014-02-08 17:02 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-08 17:05 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-08 17:19 ` Denis.V.Kolesnik@safe-mail.net
                   ` (20 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-08 17:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #38 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
if i find a bug I will reopen it and if I find intrusion in my software I will
take actions accordingly.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (35 preceding siblings ...)
  2014-02-08 17:05 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-08 17:19 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-08 17:46 ` schwab@linux-m68k.org
                   ` (19 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-08 17:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #39 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
Dear Mr. Wakely,



if people like you plan to make court of my money by some actions I better
minimize my contacts with people like you, because after I did reinstall my
system I have the same problem again.



--


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (36 preceding siblings ...)
  2014-02-08 17:19 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-08 17:46 ` schwab@linux-m68k.org
  2014-02-08 18:09 ` Denis.V.Kolesnik@safe-mail.net
                   ` (18 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: schwab@linux-m68k.org @ 2014-02-08 17:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #40 from Andreas Schwab <schwab@linux-m68k.org> ---
spam.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (38 preceding siblings ...)
  2014-02-08 18:09 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-08 18:09 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-08 18:11 ` Denis.V.Kolesnik@safe-mail.net
                   ` (16 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-08 18:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #42 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
do not even try to intrude my pc remotelly!


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (37 preceding siblings ...)
  2014-02-08 17:46 ` schwab@linux-m68k.org
@ 2014-02-08 18:09 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-08 18:09 ` Denis.V.Kolesnik@safe-mail.net
                   ` (17 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-08 18:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #41 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
spam? where do you see meat here?


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (39 preceding siblings ...)
  2014-02-08 18:09 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-08 18:11 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-08 18:59 ` redi at gcc dot gnu.org
                   ` (15 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-08 18:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #43 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
you guys yourself have bad culture if you tell me this is not the place to talk
about my not working correctly compiler, but yourself talk about meat.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (40 preceding siblings ...)
  2014-02-08 18:11 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-08 18:59 ` redi at gcc dot gnu.org
  2014-02-09 13:20 ` Denis.V.Kolesnik@safe-mail.net
                   ` (14 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: redi at gcc dot gnu.org @ 2014-02-08 18:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #44 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Noone said to reinstall your computer. Noone here is trying to attack your
computer. Your program is not correct, that's why it doesn't work.  The problem
is not with GCC.

Now please go away.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (41 preceding siblings ...)
  2014-02-08 18:59 ` redi at gcc dot gnu.org
@ 2014-02-09 13:20 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-09 13:28 ` Denis.V.Kolesnik@safe-mail.net
                   ` (13 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-09 13:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #45 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
Listen, you, Afroruspoetry ASP, stop annoying me, I tested it twice. This is
not the place to teach me how to behave!!!!!!!!!!!!!!!!!


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (42 preceding siblings ...)
  2014-02-09 13:20 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-09 13:28 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-09 13:35 ` Denis.V.Kolesnik@safe-mail.net
                   ` (12 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-09 13:28 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #46 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
http://en.wikipedia.org/wiki/Russian_alphabet

it is correct because it works with every letter of russian alphabeth in that
codepage except with small "ya"(which corresponds to U+044F in Unicode). It
replaces only "A", "a"(U+0410 / U+0430), "E", "e"(U+0415 / U+0435) letters and
russian both big ans small "Ye", "a".

If I will find provement of intrusion into my PC by such people like you I will
not let it be so. I believe in USSR Police which worked perfectly and catched
such people like you and I'm very glad it is so.

You started with emotions and I answered with emotions.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (43 preceding siblings ...)
  2014-02-09 13:28 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-09 13:35 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-09 13:36 ` Denis.V.Kolesnik@safe-mail.net
                   ` (11 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-09 13:35 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #47 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
sorry wrote false. Here I corrected:


it is correct because it works with every letter of russian alphabeth in that
codepage except with small "ya"(which corresponds to U+044F in Unicode). It
replaces only "A", "a", "E", "e" letters and russian both big ans small U+0415
/ U+0435, U+0410 / U+0430.

If I will find provement of intrusion into my PC by such people like you I will
not let it be so. I believe in USSR Police which worked perfectly and catched
such people like you and I'm very glad it is so.

You started with emotions and I answered with emotions.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (44 preceding siblings ...)
  2014-02-09 13:35 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-09 13:36 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-09 13:37 ` Denis.V.Kolesnik@safe-mail.net
                   ` (10 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-09 13:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #48 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
sorry wrote false. Here I corrected:


it is correct because it works with every letter of russian alphabeth in that
codepage except with small "ya"(which corresponds to U+044F in Unicode). It
replaces only "A", "a", "E", "e" letters and russian both big and small U+0415
/ U+0435, U+0410 / U+0430.

If I will find provement of intrusion into my PC by such people like you I will
not let it be so. I believe in USSR Police which worked perfectly and catched
such people like you and I'm very glad it is so.

You started with emotions and I answered with emotions.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (45 preceding siblings ...)
  2014-02-09 13:36 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-09 13:37 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-09 13:38 ` Denis.V.Kolesnik@safe-mail.net
                   ` (9 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-09 13:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #49 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
And do not try to lie for 4.6.1 version when I download it again. I do pay
taxes regularly and even more, so do not put me into criminal world.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (46 preceding siblings ...)
  2014-02-09 13:37 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-09 13:38 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-10 22:36 ` Denis.V.Kolesnik@safe-mail.net
                   ` (8 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-09 13:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #50 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
listen if you will not stop to fool me I wil act immediatelly by pointing each
your step on a illustrated map!!!!!!!!!!!!!!!!!


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (47 preceding siblings ...)
  2014-02-09 13:38 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-10 22:36 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-10 22:48 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-10 22:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #51 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
I will set as unconfirmed each time it will be changed, because I have no
ability to download from internet the version 4.6.1 from MinGW official
source(and the version I have now on my DVD could be contaminated with a
virus). Maybe you are right and there is no bug. 

I could make diplomacy even if there is a bug but not in key questions of my
politic views.

You also should acknowledge your mistakes. I do if I'm wrong, why you do not do
the same? It does not makes you bad, just shows you, that you should work on
yourself as I do and I do a lot of mistakes, which I acknowledge.

Sorry also for uncensored words, but if you will demand I will search something
that is unspoken now...

There is a version 4.6.1 from google, I will try it now and if there is no bug
I resolve this as invalid, but again not to forget about my key views.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (48 preceding siblings ...)
  2014-02-10 22:36 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-10 22:48 ` pinskia at gcc dot gnu.org
  2014-02-10 23:12 ` Denis.V.Kolesnik@safe-mail.net
                   ` (6 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-02-10 22:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #52 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think you will find that you need to open the file in binary mode and that
might help you out.  And that the char is 8bit characters so the you need to
look up the encoding format for UTF-8.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (49 preceding siblings ...)
  2014-02-10 22:48 ` pinskia at gcc dot gnu.org
@ 2014-02-10 23:12 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-10 23:14 ` Denis.V.Kolesnik@safe-mail.net
                   ` (5 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-10 23:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #53 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
I will try to not such google services, because I'm not sure that my conditions
will be respected and I will search guaranties.

But while a character is 8bit what does it change? All russian letters, that
are used in current russian language are coded in the similar maner?!


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (50 preceding siblings ...)
  2014-02-10 23:12 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-10 23:14 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-10 23:30 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-10 23:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

--- Comment #54 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
please do not close this issue untill I will have the abilitz to prove whether
it is a bug or not.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (51 preceding siblings ...)
  2014-02-10 23:14 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-10 23:30 ` pinskia at gcc dot gnu.org
  2014-02-26 19:51 ` Denis.V.Kolesnik@safe-mail.net
                   ` (3 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-02-10 23:30 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #55 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Seriously this bug report is out of hand.  First let me say this: what do you
think GCC is doing wrong?  If you want report a new bug as this bug is full of
many different bugs in your code; don't reopen this bug.  Please when you open
a new one explain what you think GCC is doing wrong and provide all the needed
data files (which you are missing right now).

Second the library functions like fopen and fgetc are not provided by GCC but
by your libc vendor (in the case of mingw, mingw and to some extend even
Microsoft).  So if this code is not working due to fopen/fgetc then it is not a
bug in GCC.

Note I see at least one bug in your code, fgetc returns an int type and EOF is
-1 in int as 0xff is a valid character (not in UTF-8 though).  It might be the
cause of the bug in the first place.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug c++/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (52 preceding siblings ...)
  2014-02-10 23:30 ` pinskia at gcc dot gnu.org
@ 2014-02-26 19:51 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-26 20:38 ` [Bug spam/59598] " redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-26 19:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #56 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
it is a bug and if it is related to DMZ so as I think I will not do any
diplomacy on it.


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug spam/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (53 preceding siblings ...)
  2014-02-26 19:51 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-26 20:38 ` redi at gcc dot gnu.org
  2014-02-28  0:56 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-28  1:24 ` pinskia at gcc dot gnu.org
  56 siblings, 0 replies; 58+ messages in thread
From: redi at gcc dot gnu.org @ 2014-02-26 20:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|c++                         |spam
         Resolution|---                         |INVALID

--- Comment #57 from Jonathan Wakely <redi at gcc dot gnu.org> ---
go away


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug spam/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (54 preceding siblings ...)
  2014-02-26 20:38 ` [Bug spam/59598] " redi at gcc dot gnu.org
@ 2014-02-28  0:56 ` Denis.V.Kolesnik@safe-mail.net
  2014-02-28  1:24 ` pinskia at gcc dot gnu.org
  56 siblings, 0 replies; 58+ messages in thread
From: Denis.V.Kolesnik@safe-mail.net @ 2014-02-28  0:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #58 from Denis Kolesnik <Denis.V.Kolesnik@safe-mail.net> ---
if it is related to "Koksohim" I will not do any diplomacy.....


^ permalink raw reply	[flat|nested] 58+ messages in thread

* [Bug spam/59598] very simple code using file open for read
  2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
                   ` (55 preceding siblings ...)
  2014-02-28  0:56 ` Denis.V.Kolesnik@safe-mail.net
@ 2014-02-28  1:24 ` pinskia at gcc dot gnu.org
  56 siblings, 0 replies; 58+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-02-28  1:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #59 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Denis Kolesnik from comment #58)
> if it is related to "Koksohim" I will not do any diplomacy.....

Please read my last comment (comment #55).  You still have not given all the
needed information I asked for.  If you are not willing to do that, then we
cannot (and will not) help you.


^ permalink raw reply	[flat|nested] 58+ messages in thread

end of thread, other threads:[~2014-02-28  1:24 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-25 16:56 [Bug c++/59598] New: very simple code using file open for read lirex.software at gmail dot com
2013-12-25 16:57 ` [Bug c++/59598] " lirex.software at gmail dot com
2013-12-25 16:59 ` lirex.software at gmail dot com
2013-12-25 17:08 ` pinskia at gcc dot gnu.org
2013-12-25 17:12 ` Denis.V.Kolesnik@safe-mail.net
2013-12-26 19:51 ` Denis.V.Kolesnik@safe-mail.net
2013-12-26 19:57 ` Denis.V.Kolesnik@safe-mail.net
2013-12-26 19:58 ` Denis.V.Kolesnik@safe-mail.net
2013-12-26 19:58 ` Denis.V.Kolesnik@safe-mail.net
2013-12-26 19:59 ` Denis.V.Kolesnik@safe-mail.net
2013-12-26 20:11 ` Denis.V.Kolesnik@safe-mail.net
2013-12-26 20:32 ` pinskia at gcc dot gnu.org
2013-12-26 20:34 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 15:07 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 17:01 ` schwab@linux-m68k.org
2013-12-28 17:18 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 19:31 ` pinskia at gcc dot gnu.org
2013-12-28 21:56 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 21:58 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 22:00 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 22:03 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 22:55 ` ktietz at gcc dot gnu.org
2013-12-28 22:59 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 23:01 ` ktietz at gcc dot gnu.org
2013-12-28 23:02 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 23:07 ` ktietz at gcc dot gnu.org
2013-12-28 23:12 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 23:13 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 23:17 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 23:18 ` Denis.V.Kolesnik@safe-mail.net
2013-12-28 23:25 ` ktietz at gcc dot gnu.org
2013-12-29 12:59 ` Denis.V.Kolesnik@safe-mail.net
2014-01-28 17:45 ` Denis.V.Kolesnik@safe-mail.net
2014-02-03 15:27 ` Denis.V.Kolesnik@safe-mail.net
2014-02-04  8:27 ` redi at gcc dot gnu.org
2014-02-08 17:02 ` Denis.V.Kolesnik@safe-mail.net
2014-02-08 17:05 ` Denis.V.Kolesnik@safe-mail.net
2014-02-08 17:19 ` Denis.V.Kolesnik@safe-mail.net
2014-02-08 17:46 ` schwab@linux-m68k.org
2014-02-08 18:09 ` Denis.V.Kolesnik@safe-mail.net
2014-02-08 18:09 ` Denis.V.Kolesnik@safe-mail.net
2014-02-08 18:11 ` Denis.V.Kolesnik@safe-mail.net
2014-02-08 18:59 ` redi at gcc dot gnu.org
2014-02-09 13:20 ` Denis.V.Kolesnik@safe-mail.net
2014-02-09 13:28 ` Denis.V.Kolesnik@safe-mail.net
2014-02-09 13:35 ` Denis.V.Kolesnik@safe-mail.net
2014-02-09 13:36 ` Denis.V.Kolesnik@safe-mail.net
2014-02-09 13:37 ` Denis.V.Kolesnik@safe-mail.net
2014-02-09 13:38 ` Denis.V.Kolesnik@safe-mail.net
2014-02-10 22:36 ` Denis.V.Kolesnik@safe-mail.net
2014-02-10 22:48 ` pinskia at gcc dot gnu.org
2014-02-10 23:12 ` Denis.V.Kolesnik@safe-mail.net
2014-02-10 23:14 ` Denis.V.Kolesnik@safe-mail.net
2014-02-10 23:30 ` pinskia at gcc dot gnu.org
2014-02-26 19:51 ` Denis.V.Kolesnik@safe-mail.net
2014-02-26 20:38 ` [Bug spam/59598] " redi at gcc dot gnu.org
2014-02-28  0:56 ` Denis.V.Kolesnik@safe-mail.net
2014-02-28  1:24 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).