Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-05

IDE change source itself

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dariusz Mazur

Hi
I have problem with editor under Win8

If I try edit attached file, IDE remove some of chars from source. There are some of diacritic chars from different code page, but I think, editor mustn't it changed.
Is this know behavior? Is this bug?

I use Lazarus x64 ver 1.08 (under Linux was everything ok)

Darek -------------- next part -------------- unit testchar; interface const setLiter1 = ['0'..'9','A'..'Z','a'..'z','?','?','?','?','?','?','?','?','?','?','?','?','?','?','?','?','?','?']; setLiter2 = ['0'..'9','A'..'Z','a'..'z','?','?','=','?','?','?','?','?','?','?','?','?','?','?','?','?','?','?']; implementation end.

Reply by email

waldo kitty
to Dariusz Mazur
Dariusz Mazur wrote 9 lines
Hi I have problem with editor under Win8 If I try edit attached file, IDE remove some of chars from source. There are some of diacritic chars from different code page, but I think, editor mustn't it changed. Is this know behavior? Is this bug? I use Lazarus x64 ver 1.08 (under Linux was everything ok)

what codepage are you using? what codepage(s) are the missing characters in? perhaps a different codepage is needed to be able to represent both?

i ran into something similar in other products where a text file was being seen as UTF-8 because it contained double byte characters... the solution was to tell that editor to "convert" (not really) to ANSI (yes, wrong nomenclature) and then the display the file using WIN-1252... the characters in question were Cyrillic...

NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted.

Reply by email

Mattias Gaertner
to Dariusz Mazur: Hi I have problem with editor under Win8 If I try edit attached file, IDE remove some of…
Show quoted text 7 lines
Hi I have problem with editor under Win8 If I try edit attached file, IDE remove some of chars from source. There are some of diacritic chars from different code page, but I think, editor mustn't it changed. Is this know behavior? Is this bug?

Simply opening and saving a file should at most alter #0,#10,#13 characters.
Editing might change invalid characters. There can be invalid characters if you open a file with the wrong encoding. You change the encoding via Right click / File settings / encoding.

I use Lazarus x64 ver 1.08 (under Linux was everything ok)

Mattias

Reply by email

Dariusz Mazur
to Mattias Gaertner

W dniu 2013-05-29 07:55, Mattias Gaertner pisze:

Show quoted text 15 lines
On Tue, 28 May 2013 20:07:11 +0200 Dariusz Mazur wrote: > Hi > I have problem with editor under Win8 > > If I try edit attached file, IDE remove some of chars from source. > There are some of diacritic chars from different code page, but I think, > editor mustn't it changed. > Is this know behavior? Is this bug? Simply opening and saving a file should at most alter #0,#10,#13 characters. Editing might change invalid characters. There can be invalid characters if you open a file with the wrong encoding. You change the encoding via Right click / File settings / encoding.

I don edit line with weird characters, and I think editor shouldn't change it.
In source some times i mix strings with different code page (don't ask why)

most of editors don't change it, even if they can't show proper characters

Darek

Darek

Reply by email

Dariusz Mazur
to waldo kitty: what codepage are you using? what codepage(s) are the missing characters in? perhaps a…

W dniu 2013-05-29 01:35, waldo kitty pisze:

Show quoted text 16 lines
On 5/28/2013 14:07, Dariusz Mazur wrote: > Hi > I have problem with editor under Win8 > > If I try edit attached file, IDE remove some of chars from source. > There are some of diacritic chars from different code page, but I > think, editor > mustn't it changed. > Is this know behavior? Is this bug? > > I use Lazarus x64 ver 1.08 (under Linux was everything ok) what codepage are you using? what codepage(s) are the missing characters in? perhaps a different codepage is needed to be able to represent both?

I don't need IDE to represent this characters only not remove them

Show quoted text 6 lines
i ran into something similar in other products where a text file was being seen as UTF-8 because it contained double byte characters... the solution was to tell that editor to "convert" (not really) to ANSI (yes, wrong nomenclature) and then the display the file using WIN-1252... the characters in question were Cyrillic...
Darek

Reply by email

Mattias Gaertner
to Dariusz Mazur: W dniu 2013-05-29 07:55, Mattias Gaertner pisze: I don edit line with weird characters,…
Show quoted text 19 lines
W dniu 2013-05-29 07:55, Mattias Gaertner pisze: > On Tue, 28 May 2013 20:07:11 +0200 > Dariusz Mazur wrote: > >> Hi >> I have problem with editor under Win8 >> >> If I try edit attached file, IDE remove some of chars from source. >> There are some of diacritic chars from different code page, but I think, >> editor mustn't it changed. >> Is this know behavior? Is this bug? > Simply opening and saving a file should at most alter #0,#10,#13 > characters. > Editing might change invalid characters. There can be invalid > characters if you open a file with the wrong encoding. You change the > encoding via Right click / File settings / encoding. I don edit line with weird characters, and I think editor shouldn't change it.

Then please create a bug report and steps to reproduce.

Mattias

Reply by email

Dariusz Mazur
to Mattias Gaertner

W dniu 2013-05-29 09:59, Mattias Gaertner pisze:

Show quoted text 22 lines
On Wed, 29 May 2013 09:54:44 +0200 Dariusz Mazur wrote: > W dniu 2013-05-29 07:55, Mattias Gaertner pisze: >> On Tue, 28 May 2013 20:07:11 +0200 >> Dariusz Mazur wrote: >> >>> Hi >>> I have problem with editor under Win8 >>> >>> If I try edit attached file, IDE remove some of chars from source. >>> There are some of diacritic chars from different code page, but I think, >>> editor mustn't it changed. >>> Is this know behavior? Is this bug? >> Simply opening and saving a file should at most alter #0,#10,#13 >> characters. >> Editing might change invalid characters. There can be invalid >> characters if you open a file with the wrong encoding. You change the >> encoding via Right click / File settings / encoding. > I don edit line with weird characters, and I think editor shouldn't > change it. Then please create a bug report and steps to reproduce.

http://bugs.freepascal.org/view.php?id=24510

Darek

Reply by email