Bug with diacriticals in folder names

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug with diacriticals in folder names

Alain Farmer
Hello y'all,

I'm using version 6.6.2 of LiveCode, running on a UNIX machine.
I'm not sure if I have brought this up before, but..
there is a problem with folder names that contain diacriticals.


put getCurrentFolder() & "Acériculture" into myFolder1
put getCurrentFolder() & "Acericulture" into myFolder2
answer (there is a folder myFolder1) & "," & (there is a folder myFolder2)
-- answers false,true

I don't want to rename thousands of folders; Is there a workaround ?
Btw, I cannot rename them by script, because, according to LiveCode, they don't exist !!!
Helllllp !?!
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug with diacriticals in folder names

mwieder
Alain-

Sunday, August 17, 2014, 10:25:10 AM, you wrote:

> Hello y'all,

> I'm using version 6.6.2 of LiveCode, running on a UNIX machine.
> I'm not sure if I have brought this up before, but..
> there is a problem with folder names that contain diacriticals.


> put getCurrentFolder() & "Acériculture" into myFolder1
> put getCurrentFolder() & "Acericulture" into myFolder2
> answer (there is a folder myFolder1) & "," & (there is a folder myFolder2)
> -- answers false,true

> I don't want to rename thousands of folders; Is there a workaround ?
> Btw, I cannot rename them by script, because, according to LiveCode, they don't exist !!!
> Helllllp !?!

Probably not much help, but it's a unicode problem. The following
works fine here on linux mint with LC 6.6.2 and 6.7-dp8 7.0-dp8 as
well. In a button script:

on mouseUp
    local tFolder
   
    answer folder "Find the folder"
    put it into tFolder
    answer there is a folder tFolder
    set the defaultfolder to tFolder
    get url ("file:" & tFolder & "/Acericulture")
    put tFolder & cr & it into field 1
end mouseUp

with a target folder named "Acériculture"

the answer statement shows true
the field gets the contents of the enclosed text file
(using diacriticals in file names is also successful)
and aside from the fact that tFolder shows a bad transliteration of
the unicode, this works as expected.

However, while
answer there is a folder tFolder
works fine,
answer there is a folder "/home/mwieder/Copy/Acériculture"
returns false.

This no doubt is due to the fact that the LC reports the folder path
as "/home/mwieder/Copy/Acériculture"

--
-Mark Wieder
 [hidden email]

This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not
consent to the retrieving or storing of this communication and any
related metadata, as well as printing, copying, re-transmitting,
disseminating, or otherwise using it. If you believe you have received
this communication in error, please delete it immediately.


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
 Mark Wieder
 ahsoftware@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: Bug with diacriticals in folder names

Richmond Mathewson-2
On 17/08/14 22:41, Mark Wieder wrote:
> Alain-
>
> Sunday, August 17, 2014, 10:25:10 AM, you wrote:
>
>> Hello y'all,
>> I'm using version 6.6.2 of LiveCode, running on a UNIX machine.
>>
<snip>

Does Livecode work on UNIX?

If so why is this not more widely publicised?

Richmond.

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug with diacriticals in folder names

Richard Gaskin
In reply to this post by Alain Farmer
Alain Farmer wrote:

> I'm using version 6.6.2 of LiveCode, running on a UNIX machine.
> I'm not sure if I have brought this up before, but..
> there is a problem with folder names that contain diacriticals.
>
>
> put getCurrentFolder() & "Acériculture" into myFolder1
> put getCurrentFolder() & "Acericulture" into myFolder2
> answer (there is a folder myFolder1) & "," & (there is a folder myFolder2)
> -- answers false,true
>
> I don't want to rename thousands of folders; Is there a workaround ?
> Btw, I cannot rename them by script, because, according to LiveCode, they don't exist !!!
> Helllllp !?!

Version 6.6.2 predates the extensive work done with implementing Unicode
throughout LiveCode, which should also take into account characters in
file paths not well handled by earlier versions of the engine.

You should find these enhancements in v7.0, currently in DP 9 for
testing, available here:
<http://downloads.livecode.com/livecode/>

Note that to accommodate the sweeping scope of changes we've all been
asking for required a file format change.  So to help test the new
version while continuing to have the option of possibly working in older
versions, safest it so make sure you have 6.x-compatible copies as
backups, and/or use the Save As feature to save out to an older format.

As Kevin has described in his recent blog posts, v7 is the foundation
for the future of the platform, including many if not most (certainly
most in terms of scope of effort) of the deep changes we all supported
with the Kickstarter campaign last year.

So all of us benefit from doing as much of our daily work with the v7
Developer Preview builds as we possibly can.

After all, what we don't want to happen is to merely hope that the
testing others do happens to will cover all the areas unique to our app,
and put off using v7 until after release.  We'll want to make sure v7
does exactly what we need it to do on release day, and that can happen
only if we all work with it today.

Please keep us posted if you find this issue remains outstanding in
v7dp9, and be sure to file a bug report so it can be addressed before dp10:
<http://quality.runrev.com/>

--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  [hidden email]                http://www.FourthWorld.com

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug with diacriticals in folder names

Alain Farmer
In reply to this post by Richmond Mathewson-2
To Richmond: YES, LiveCode runs on UNIX machines. Btw, MetaCard was first developed for UNIX, then Windows, then Mac.

To Richard: Thanks for the nudge to use/test version 7, but I am swamped with work right-now, I do not have time, and I cannot risk using something beta at this time.


To Mark:
-- with a folder named "Acériculture" :
put getCurrentFolder() & "Acériculture" into myFolder
answer (there is a folder myFolder) -- answers TRUE. You were right about the unicode.
-- Thanks Mark



On Sunday, August 17, 2014 3:54:48 PM, Richmond <[hidden email]> wrote:
 


On 17/08/14 22:41, Mark Wieder wrote:
> Alain-
>
> Sunday, August 17, 2014, 10:25:10 AM, you wrote:
>
>> Hello y'all,
>> I'm using version 6.6.2 of LiveCode, running on a UNIX machine.
>>
<snip>

Does Livecode work on UNIX?

If so why is this not more widely publicised?

Richmond.


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug with diacriticals in folder names

Richard Gaskin
Alain Farmer wrote:
 > To Richard: Thanks for the nudge to use/test version 7, but I am
 > swamped with work right-now, I do not have time, and I cannot risk
 > using something beta at this time.

I can understand that; I mix my time between 6 and 7 myself throughout
the day as project needs require.

But always the optimist, we could look at that in the other direction:

While there *might* be risks with using v7, not using it introduces the
*certainty* of not having at least one thing you need.  :)

If nothing else, if you could spare a moment to test that one thing you
know isn't working in older versions it'll help not only your project,
but maybe many others down the road as well.

--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  [hidden email]                http://www.FourthWorld.com

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug with diacriticals in folder names

mwieder
In reply to this post by Richard Gaskin
Richard-

Sunday, August 17, 2014, 1:53:33 PM, you wrote:

> Version 6.6.2 predates the extensive work done with implementing Unicode
> throughout LiveCode, which should also take into account characters in
> file paths not well handled by earlier versions of the engine.

...and indeed LC 7.0-dp8 does the right thing natively with
diacriticals in file/folder names without having to do any unicode
transliterations.

--
-Mark Wieder
 [hidden email]

This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not
consent to the retrieving or storing of this communication and any
related metadata, as well as printing, copying, re-transmitting,
disseminating, or otherwise using it. If you believe you have received
this communication in error, please delete it immediately.


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
 Mark Wieder
 ahsoftware@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: Bug with diacriticals in folder names

Richard Gaskin
Mark Wieder wrote:
> ...and indeed LC 7.0-dp8 does the right thing natively with
> diacriticals in file/folder names without having to do any unicode
> transliterations.

Thanks for confirming that, Mark.

One more down.  Now I can focus on figuring out why font sizes seem
inappropriately large on Linux for layouts that look pretty consistent
on Mac and Win (are you seeing that?)....

--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  [hidden email]                http://www.FourthWorld.com

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug with diacriticals in folder names

Alain Farmer
Yup, thanks for confirming that, Mark.



On Sunday, August 17, 2014 7:06:00 PM, Richard Gaskin <[hidden email]> wrote:
 


Mark Wieder wrote:
> ...and indeed LC 7.0-dp8 does the right thing natively with
> diacriticals in file/folder names without having to do any unicode
> transliterations.

Thanks for confirming that, Mark.

One more down.  Now I can focus on figuring out why font sizes seem
inappropriately large on Linux for layouts that look pretty consistent
on Mac and Win (are you seeing that?)....

--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  [hidden email]                http://www.FourthWorld.com


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug with diacriticals in folder names

Alain Farmer
Hey! I found an easy workaround to the problem of diacriticals in folder names.
I got the list of paths by recursively getting all of the folders, including the diacritical ones I had trouble with.
The folders function lists these folders, but "there is a folder" reported that diacritical ones did not exist.
In LiveCode 6.6.2 [script editor], LC reports that there is no such folder when the path contains diacritical(s).
But when I store the paths into a file, encoded as UTF8, then read the file, ALL of the folders with diacriticals EXIST!Thank you, Mark, for pointing out that it is a unicode issue.
Then I got lucky as I persevered.
How gratifying! :-))



On Monday, August 18, 2014 12:16:57 AM, Alain Farmer <[hidden email]> wrote:
 


Yup, thanks for confirming that, Mark.


On Sunday, August 17, 2014 7:06:00 PM, Richard Gaskin <[hidden email]> wrote:
 


Mark Wieder wrote:
> ...and indeed LC 7.0-dp8 does the right thing natively with
> diacriticals in file/folder names without having to do any unicode
>
 transliterations.

Thanks for confirming that, Mark.

One more down.  Now I can focus on figuring out why font sizes seem
inappropriately large on Linux for layouts that look pretty consistent
on Mac and Win (are you seeing that?)....

--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  [hidden email]                http://www.FourthWorld.com


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Bug with diacriticals in folder names

Bob Sneidar-2
Sure! It’s called the, “Apple OS”. ;-)

Not sure about the graphical stuff tho’. Also, not sure how you would go about installing it.

Bob S


On Aug 18, 2014, at 11:02 , Alain Farmer <[hidden email]> wrote:

> Hey! I found an easy workaround to the problem of diacriticals in folder names.
> I got the list of paths by recursively getting all of the folders, including the diacritical ones I had trouble with.
> The folders function lists these folders, but "there is a folder" reported that diacritical ones did not exist.
> In LiveCode 6.6.2 [script editor], LC reports that there is no such folder when the path contains diacritical(s).
> But when I store the paths into a file, encoded as UTF8, then read the file, ALL of the folders with diacriticals EXIST!Thank you, Mark, for pointing out that it is a unicode issue.
> Then I got lucky as I persevered.
> How gratifying! :-))
>
>
>
> On Monday, August 18, 2014 12:16:57 AM, Alain Farmer <[hidden email]> wrote:
>
>
>
> Yup, thanks for confirming that, Mark.
>
>
> On Sunday, August 17, 2014 7:06:00 PM, Richard Gaskin <[hidden email]> wrote:
>
>
>
> Mark Wieder wrote:
>> ...and indeed LC 7.0-dp8 does the right thing natively with
>> diacriticals in file/folder names without having to do any unicode
>>
> transliterations.
>
> Thanks for confirming that, Mark.
>
> One more down.  Now I can focus on figuring out why font sizes seem
> inappropriately large on Linux for layouts that look pretty consistent
> on Mac and Win (are you seeing that?)....
>
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the Web
>   ____________________________________________________________________
>   [hidden email]                http://www.FourthWorld.com
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode