Re: dragData["private"] is not Unicode aware

2019-06-18 Thread Paul Dupuis via use-livecode

On 6/18/2019 9:01 AM, Trevor DeVore via use-livecode wrote:

On Tue, Jun 18, 2019 at 6:28 AM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


I should learn how to contribute to updating documentation myself, but I
have tried setting up GIT on Windows twice without success (obviously I
am doing something basic wrong).


The good news is that you don’t have to set up Git to contribute. The “This
Week In LiveCode” newsletter has links to video instructions on how to
contribute to the docs using your web browser. Scroll down to the bottom of
the following page and you will see links to them along with doc entries
that need updating:

https://livecode.github.io/this-week-in-livecode/issue/2019/06/17/this-week-in-livecode-182.html


Thank you Trevor!

https://github.com/livecode/livecode/pull/7109

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: dragData["private"] is not Unicode aware

2019-06-18 Thread Trevor DeVore via use-livecode
On Tue, Jun 18, 2019 at 6:28 AM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> I should learn how to contribute to updating documentation myself, but I
> have tried setting up GIT on Windows twice without success (obviously I
> am doing something basic wrong).


The good news is that you don’t have to set up Git to contribute. The “This
Week In LiveCode” newsletter has links to video instructions on how to
contribute to the docs using your web browser. Scroll down to the bottom of
the following page and you will see links to them along with doc entries
that need updating:

https://livecode.github.io/this-week-in-livecode/issue/2019/06/17/this-week-in-livecode-182.html

-- 
Trevor DeVore
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: dragData["private"] is not Unicode aware

2019-06-18 Thread Paul Dupuis via use-livecode

On 6/18/2019 3:29 AM, Mark Waddingham via use-livecode wrote:

On 2019-06-17 22:09, Paul Dupuis via use-livecode wrote:

Folks (those who may have an interest at least):

I just filed a bug: https://quality.livecode.com/show_bug.cgi?id=22192

Does this ("Private" NOT Unicode aware) seem like a Feature or a Bug?


This is a documentation bug really - you can only store binary data in 
the

private key of the clipboard/dragboard (these things only store binary
data internally for all things).

So you need to textEncode/textDecode strings, and arrayEncode/Decode 
arrays

if you want to store either of those things there.

Warmest Regards,

Mark.



Thanks for the clarification Mark. I'm fine with treating it as binary 
and encoding/decoding my data as needed to keep it private and usable in 
our app. I would be nice to have that in the dragData dictionary entry 
whenever the docs can be updated.


I should learn how to contribute to updating documentation myself, but I 
have tried setting up GIT on Windows twice without success (obviously I 
am doing something basic wrong).



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: dragData["private"] is not Unicode aware

2019-06-18 Thread Mark Waddingham via use-livecode

On 2019-06-17 22:09, Paul Dupuis via use-livecode wrote:

Folks (those who may have an interest at least):

I just filed a bug: https://quality.livecode.com/show_bug.cgi?id=22192

Does this ("Private" NOT Unicode aware) seem like a Feature or a Bug?


This is a documentation bug really - you can only store binary data in 
the

private key of the clipboard/dragboard (these things only store binary
data internally for all things).

So you need to textEncode/textDecode strings, and arrayEncode/Decode 
arrays

if you want to store either of those things there.

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: dragData["private"] is not Unicode aware

2019-06-17 Thread J. Landman Gay via use-livecode
I had a similar problem with the merge command. Try using urlEncode to 
store the text and urlDecode to retrieve it.


Both our issues should probably be reported as bugs, but I haven't had 
time. Feel free. :)


On 6/17/19 3:09 PM, Paul Dupuis via use-livecode wrote:

Folks (those who may have an interest at least):

I just filed a bug: https://quality.livecode.com/show_bug.cgi?id=22192

Essentially, I discovered in LC905rc1 that:

For years you could do:

set the dragData["private"] to "Some English Text"

and then put the dragData{"private"] and get "Some English Text"

In trying to may our apps more internationally aware (i.e. supporting 
Unicode), we just tried:


set the dragData["private"] to "一些中文文本"

and then put the dragData["private"] and we got "??"

And, before someone says "Use "text" vs "private", we use "private" 
since, in our app, other data beside some text is added and that data is 
private to our application (i.e. it should not be draggable outside our 
app). My understanding is the using "text" would allow the data to be 
draggable to other apps that allow dropped text.


Does this ("Private" NOT Unicode aware) seem like a Feature or a Bug?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

dragData["private"] is not Unicode aware

2019-06-17 Thread Paul Dupuis via use-livecode

Folks (those who may have an interest at least):

I just filed a bug: https://quality.livecode.com/show_bug.cgi?id=22192

Essentially, I discovered in LC905rc1 that:

For years you could do:

set the dragData["private"] to "Some English Text"

and then put the dragData{"private"] and get "Some English Text"

In trying to may our apps more internationally aware (i.e. supporting 
Unicode), we just tried:


set the dragData["private"] to "一些中文文本"

and then put the dragData["private"] and we got "??"

And, before someone says "Use "text" vs "private", we use "private" 
since, in our app, other data beside some text is added and that data is 
private to our application (i.e. it should not be draggable outside our 
app). My understanding is the using "text" would allow the data to be 
draggable to other apps that allow dropped text.


Does this ("Private" NOT Unicode aware) seem like a Feature or a Bug?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode