To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=65372
                  Issue #:|65372
                  Summary:|Protected macro: Unicode string would be destroyed
                          |when a macro be protected by password.
                Component:|api
                  Version:|OOo 2.0.2
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|sw
              Reported by:|winwind





------- Additional comments from [EMAIL PROTECTED] Sun May 14 20:51:13 -0700 
2006 -------
Try this code:

Sub test
  s = "一"   ' A Chinese UTF8 String
  Msgbox "一"
  Msgbox Asc(s)
End Sub

Normally, It will print "一", and then print this Chinese UTF8's Unicode: 19968

But when this Macro goes to be protected,
(yes gived it a password before protected)
and close all Openoffice's program and re-run the macro(function test)
It print "?", and then print this Chinese UTF8's Unicode: 63 ???

What's going wrong?


And I found another point,
that is When I put the string(Chinese UTF8 String) into awt's control's Model
Text like:
Label, EditLabel, Listbox...
These Model's Text Will be same when the macro is going to be protected!

Sorry to my English if somebody still don't understand what I said.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to