gb.form.editor versus non-ascii chars (contrib)

Post

Posted
Rating:
#1 (In Topic #1324)
Regular
sergioabreu is in the usergroup ‘Regular’
 Hi there

I found a bug related to highlight and non-ascii characteres (that break the app).
I found the solution for gb.form.editor (I fixed with the source code in my PC)
How can I send the info, is there an active developer e-mail for me to send it ?
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
but a TextEditor is not supposed to support non ascii chars.  It's a "Text" editor.

So is it a bug in displaying non ascii chars in a TextEditor?

or an error in your coding trying to display non-ascii chars?

Benoit will soon let you know :)
Online now: No Back to the top

Post

Posted
Rating:
#3
Guru
BruceSteers is in the usergroup ‘Guru’
So to report a bug to Benoit (or see if it is a bug or not) use the bugtracker.
Connexion

If you are sure you have found a bug and you are sure you understand how everything works enough to make changes to gambas components yourself then contributions from users happen via the gitlab repository by forking the repository and making merge requests.
Gambas / gambas · GitLab

Contributing guidelines…
CONTRIBUTING.md · master · Gambas / gambas · GitLab
Online now: No Back to the top

Post

Posted
Rating:
#4
Regular
sergioabreu is in the usergroup ‘Regular’

BruceSteers said

 
So is it a bug in displaying non ascii chars in a TextEditor?

Remember that unicode for Latin (utf-8) may have 2 bytes instead of one for the non-ascii converted to utf-8 !
All the math and functions in highlight were done with USA chars in mind, and you dont have á é õ ç and so on…
So they used all MID LEN INSTR considering one byte character

But the solution is NOT just add String.len String.Mid, etc

<COLOR color="#0000FF">Please tell me Benoit contact in private </COLOR>to shortcut this contrib. I don't want to do the fix, just to give him the formula

I subscribed to this post but didn't receive notification e-mail, checked out and gmail put on SPAN folder…  strange.
Online now: No Back to the top

Post

Posted
Rating:
#5
Regular
sergioabreu is in the usergroup ‘Regular’

BruceSteers said

So to report a bug to Benoit (or see if it is a bug or not) use the bugtracker.
Connexion

Tried to register to bug tracker (I told you in the past) it says sent a confirmation e-mail but never comes. Neither in SPAN folder

The login / register page is not working.
Online now: No Back to the top

Post

Posted
Rating:
#6
Guru
BruceSteers is in the usergroup ‘Guru’

sergioabreu said

BruceSteers said

So to report a bug to Benoit (or see if it is a bug or not) use the bugtracker.
Connexion

Tried to register to bug tracker (I told you in the past) it says sent a confirmation e-mail but never comes. Neither in SPAN folder

The login / register page is not working.

yes i probably told you you have to use a different email to your gmail.
you could sign up with proton mail and set gmail to also get your proton mails

what about the mailing list https://lists.gambas-basic.org/#user   (i think the maintainer has managed to fix gmails bouncing)
Online now: No Back to the top

Post

Posted
Rating:
#7
Regular
sergioabreu is in the usergroup ‘Regular’
I will not create an e-mail to  workaround a non working system, I am sorry.

<COLOR color="#0000FF">if I can directly contact Benoit I will send him the fix</COLOR>. Waiting in private message.
Online now: No Back to the top

Post

Posted
Rating:
#8
Guru
BruceSteers is in the usergroup ‘Guru’

sergioabreu said

I will not create an e-mail to  workaround a non working system, I am sorry.

<COLOR color="#0000FF">if I can directly contact Benoit I will send the fix</COLOR>. Waiting in private message.

yep gmail is pretty rubbish

if you signup to the mailing list they can probably add you to the bugtracker manually.
https://lists.gambas-basic.org/#user
Online now: No Back to the top

Post

Posted
Rating:
#9
Regular
sergioabreu is in the usergroup ‘Regular’
Think about the quantity of countries that have non-ascii chars in their language that can be CONVERTED to UTF-8 and loaded in a gambas Text Editor.

<COLOR color="#BF0040">Users of all these countries may face a sudden crash</COLOR> due to the bug I discovered. It's not small thing.

Is it ok to say that "Gambas text editor is only for code with ascii letters" ?

Every program has a type called "STRING" that may contain non ascii chars as well as the COMMENTS in code that can be encoded to UTF-8, if it is outside USA.

If someone highlights one "string que contém acentuação" - this string has quantity of CHARS different of quantity of BYTES and this may break gb.form.editor - depending on the highlight -  while it does not have the fix I did.

I will try to contact Benoit via linkedin. I don't want to code globally but I still can help by information.
Online now: No Back to the top

Post

Posted
Rating:
#10
Guru
BruceSteers is in the usergroup ‘Guru’
okay then.
you sound like you know better than Benoit so hopefully you can teach him how to do it properly ;)
Online now: No Back to the top

Post

Posted
Rating:
#11
Regular
sergioabreu is in the usergroup ‘Regular’
You can have this oppinion.
Your "You sound" just shows your filter, your perception.

Instead of talking about CODE and SOLUTION you are always taking things to PERSONAL.

I just said I found a bug and want to help.

Maybe Benoit have not dealed with this bug up to now.
Online now: No Back to the top

Post

Posted
Rating:
#12
Guru
BruceSteers is in the usergroup ‘Guru’
and you dont have á é õ ç and so on

But we do so I'm not sure what you are talking about.

here's a snapshot of my editor that uses TextEditor
Image

(Click to enlarge)


So you're wrong, as clearly can be seen in the snapshot, yes we do
(is it okay to have that opinion?  oh wait,i don't care ;) )

It's a shame you only want to talk to Benoit privately rather that using the official ways he's set up to report issues.
because i'd like to see the response.

There are ways to contribute.  I showed you the links to let you know how to contribute.
On the gambas web page there's a link that tells you how to report bugs /doc/report - Gambas Documentation

On the gambas "About gambas" you will find Benoits email if you feel you can only send personal emails to the developer.
Online now: No Back to the top
1 guest and 0 members have just viewed this.