The.Dino 1 Posted April 29, 2022 Hi, We still use Delphi 7 i in my company and with all new versions of GExperts we have a problem with Uses Clause Manager (and propably with some others functions that modify the code). Delphi 7 doesn't use UTF8 in files but offten may contains charachters which look like UTF8 (are great than 127) for example national signs in comments (in our case, Polish). The changes that were added to UTF8 support for Delphi 8 and up do not work well under previous versions of Delphi (the text is pasted in the wrong place). I fixed it and in the attachment is the patch file. Maybe you will include it in one of the next versions. Thanks GX_OtaUtils.pas.patch Share this post Link to post
dummzeuch 1515 Posted April 29, 2022 5 hours ago, The.Dino said: We still use Delphi 7 i in my company and with all new versions of GExperts we have a problem with Uses Clause Manager (and probably with some others functions that modify the code). Delphi 7 doesn't use UTF8 in files but often may contains characters which look like UTF8 (are great than 127) for example national signs in comments (in our case, Polish). The changes that were added to UTF8 support for Delphi 8 and up do not work well under previous versions of Delphi (the text is pasted in the wrong place). I fixed it and in the attachment is the patch file. Maybe you will include it in one of the next versions. Thanks a lot for this. I'll have a look. Could you also please provide an example for a unit which requires this change? Share this post Link to post
The.Dino 1 Posted May 2, 2022 It's attached. I also put a screenshot of what it looks like under Delphi. If you try add any unit to one of uses sections it will be placed in wrong place. TestUnit.pas 1 Share this post Link to post
dummzeuch 1515 Posted May 3, 2022 verified and committed in revision #3842 Thanks again. 1 Share this post Link to post