Re: [Jmol-developers] bug in the script for ligand pockets in PDB

2014-06-05 Thread Robert Hanson
It's not general because within Jmol there are over 225 references to .toLowerCase() and over 150 to .toUpperCase(), and any of these are potential problems in that regard, not just that one script or scripts in general. And I think it is not possible to do this in JavaScript without an explicit

Re: [Jmol-developers] bug in the script for ligand pockets in PDB

2014-06-04 Thread Robert Hanson
yes, short of redesigning all the code references of .toLowerCase() and .toUpperCase() just for our friends in Turkey, there's not much we can do about this. On Wed, Jun 4, 2014 at 1:36 AM, Angel Herráez angel.herr...@uah.es wrote: Yes, I had read about such a problem. The issue is, however,

Re: [Jmol-developers] bug in the script for ligand pockets in PDB

2014-06-04 Thread Angel Herráez
Bob, I think you are not getting my point. I think this happens because there is an upercase ID text in the source code of that gotoligand function. For some reason, Jmol goes later to convert that to lowercase. But if the gotoligand function had just lowercase id, then I believe no harm would

Re: [Jmol-developers] bug in the script for ligand pockets in PDB

2014-06-04 Thread Robert Hanson
yes, OK, but that's not a general solution. I suppose that happens in Java and JavaScript? On Wed, Jun 4, 2014 at 2:20 PM, Angel Herráez angel.herr...@uah.es wrote: Bob, I think you are not getting my point. I think this happens because there is an upercase ID text in the source code of

[Jmol-developers] bug in the script for ligand pockets in PDB

2014-06-03 Thread Angel Herráez
Dear Bob, You're going to love this bug report. It's thrilling! I was today demonstrating the new PDB ligand pocket view that uses the contact command. Guess what... it breaks in Turkish computers, nothing is displayed but the standard protein rendering. I think I have tracked down the issue.

Re: [Jmol-developers] bug in the script for ligand pockets in PDB

2014-06-03 Thread Robert Hanson
Yes, that makes sense. Funny that we just talked about this. string.lowerCase() apparently chokes with Turkish. Go figure. Bob On Tue, Jun 3, 2014 at 2:13 PM, Angel Herráez angel.herr...@uah.es wrote: Dear Bob, You're going to love this bug report. It's thrilling! I was today

Re: [Jmol-developers] bug in the script for ligand pockets in PDB

2014-06-03 Thread Robert Hanson
here it is: http://mattryall.net/blog/2009/02/the-infamous-turkish-locale-bug On Tue, Jun 3, 2014 at 3:21 PM, Robert Hanson hans...@stolaf.edu wrote: Yes, that makes sense. Funny that we just talked about this. string.lowerCase() apparently chokes with Turkish. Go figure. Bob On