Issue 65371 - Protected macro: Unicode string would be destroyed when a macro be protected by password.
Summary: Protected macro: Unicode string would be destroyed when a macro be protected ...
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: *Testproduct
Classification: Test
Component: code (show other issues)
Version: OOo 2.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: not determined
Assignee: issues@test
QA Contact: issues@test
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2006-05-15 04:46 UTC by winwind
Modified: 2007-01-07 18:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description winwind 2006-05-15 04:46:58 UTC
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 don't understand what I said.
Comment 1 Rainer Bielefeld 2006-12-29 11:53:07 UTC
@winwind 
If you wanted to create a real bug report, please
- Attach an OOo document containing the macro
- specify aour OS and Platform
- Tell us whether you still see the problem with OOo 2.1
Comment 2 Rainer Bielefeld 2007-01-07 18:51:05 UTC
Closing issue due to reporter's inactivity

Pls. feel free to reopen this issue if you wanted to report a real issue and if
you find out that the problem is still existing with a current stable OOo version.
Comment 3 Rainer Bielefeld 2007-01-07 18:51:20 UTC
.