Re: Coding systems ?
- From: Olivier Ramare <Olivier Ramare univ-lille1 fr>
- To: gtk-app-devel-list gnome org
- Subject: Re: Coding systems ?
- Date: Mon, 22 Jan 2007 19:56:17 +0100
Many thanks to all, my handling of files and strings
was in fact faulty. I used
while(fp != NULL){
fgets(line ,256, fp);
gtk_text_buffer_insert_at_cursor(...);}
which results in the last line being read twice,
with wrong charaters at the beginning the second time.
An eof character most probably somewhere.
The test !feof(fp) is no better, but the easy
and clean code :
while( fgets(line ,256, fp)!= NULL){
gtk_text_buffer_insert_at_cursor(...);}
does wonder. I promise, next time I'll
check my code more thoroughly before
incriminating gtk!
Best,
Amities,
Olivier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]