Simplified bug end result.

** Attachment added: "cmsgbox.ods"
   
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1038632/+attachment/3358596/+files/cmsgbox.ods

** Description changed:

- When I try to password protect the macro librarys, the macro can not
- run, or make mistake output  while write chinese characters strings in
- the code .
+ 1) lsb_release -rd
+ Description:  Ubuntu quantal (development branch)
+ Release:      12.10
  
- 1) write this code in a new macro library :
- Sub main
-     msgbox "中文"  'chinese characters
+ 2) apt-cache policy libreoffice-calc
+ libreoffice-calc:
+   Installed: 1:3.6.1~rc2-1ubuntu5
+   Candidate: 1:3.6.1~rc2-1ubuntu5
+   Version table:
+  *** 1:3.6.1~rc2-1ubuntu5 0
+         500 http://archive.ubuntu.com/ubuntu/ quantal/main i386 Packages
+         100 /var/lib/dpkg/status
+ 
+ 3) What is expected to happen in a new Calc document is Save as cmsgbox.ods 
-> Tools -> Macros -> Organize Macros -> LibreOffice Basic... -> Expand 
cmsgbox.ods -> highlight Standard -> click button Organizer... -> In 
LibreOffice Basic Macro Organizer click tab Libraries -> change Location 
dropdown to cmsgbox.ods -> button New... -> cmsgboxlib -> button OK -> button 
Password... -> password: 123 -> button Edit -> make the box look like:
+ REM  *****  BASIC  *****
+ 
+ Sub Main
+       msgbox "中文"
  End Sub
- 2) Creat a button to run the sub. it can be run perfect.
- 3) At the Macro manager dialogs,  password protect it.
- 4) save the document , close it. And then open.
-    click the button to run the macro, the chinese characters  string show 
error.
- 5) Open the basic IDE, use the password to open the code, it runs .
  
- This is probably a character encoding issue?
+ -> Run BASIC (F5) and notice a soffice window pops up with:
+ 中文
+ 
+ click OK button -> Save -> close window msgbox.ods.cmsgboxlib - LibreOffice 
Basic -> close window cmsgbox.ods - LibreOffice Calc -> reopen cmsgbox.ods -> 
click Tools -> Macros -> Run Macro -> expand cmsgbox.ods -> expand cmsgboxlib 
-> click Module1 -> click button Run and an soffice window should pop up with:
+ 中文
+ 
+ 4) What happens instead is it shows:
+ ??
+ 
+ End result document may be found at
+ 
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1038632/+attachment/3358596/+files/cmsgbox.ods
+ .
  
  Environment: libreoffice 3.5.x , 3.6.x @ ubuntu 12.04 @ zh_CN.UTF-8
- --- 
+ ---
  ApportVersion: 2.0.1-0ubuntu13
  Architecture: i386
  DistroRelease: Ubuntu 12.04
  InstallationMedia: Xubuntu 12.04 "Precise Pangolin" - Beta i386 (20120228)
  NonfreeKernelModules: nvidia
  Package: libreoffice 1:3.5.4-0ubuntu1.1
  PackageArchitecture: i386
  ProcEnviron:
-  LANGUAGE=zh_CN:en
-  TERM=xterm
-  PATH=(custom, no user)
-  LANG=zh_CN.UTF-8
-  SHELL=/bin/bash
+  LANGUAGE=zh_CN:en
+  TERM=xterm
+  PATH=(custom, no user)
+  LANG=zh_CN.UTF-8
+  SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.2.0-31.50-generic-pae 3.2.28
  Tags:  precise
  Uname: Linux 3.2.0-31-generic-pae i686
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxusers

** Description changed:

  1) lsb_release -rd
  Description:  Ubuntu quantal (development branch)
  Release:      12.10
  
  2) apt-cache policy libreoffice-calc
  libreoffice-calc:
-   Installed: 1:3.6.1~rc2-1ubuntu5
-   Candidate: 1:3.6.1~rc2-1ubuntu5
-   Version table:
-  *** 1:3.6.1~rc2-1ubuntu5 0
-         500 http://archive.ubuntu.com/ubuntu/ quantal/main i386 Packages
-         100 /var/lib/dpkg/status
+   Installed: 1:3.6.1~rc2-1ubuntu5
+   Candidate: 1:3.6.1~rc2-1ubuntu5
+   Version table:
+  *** 1:3.6.1~rc2-1ubuntu5 0
+         500 http://archive.ubuntu.com/ubuntu/ quantal/main i386 Packages
+         100 /var/lib/dpkg/status
  
- 3) What is expected to happen in a new Calc document is Save as cmsgbox.ods 
-> Tools -> Macros -> Organize Macros -> LibreOffice Basic... -> Expand 
cmsgbox.ods -> highlight Standard -> click button Organizer... -> In 
LibreOffice Basic Macro Organizer click tab Libraries -> change Location 
dropdown to cmsgbox.ods -> button New... -> cmsgboxlib -> button OK -> button 
Password... -> password: 123 -> button Edit -> make the box look like:
+ 3) What is expected to happen in a new Calc document is Save as cmsgbox.ods 
-> Tools -> Macros -> Organize Macros -> LibreOffice Basic... -> Expand 
cmsgbox.ods -> highlight Standard -> click button Organizer... -> In 
LibreOffice Basic Macro Organizer click tab Libraries -> change Location 
dropdown to cmsgbox.ods -> button New... -> cmsgboxlib -> button OK -> button 
Password... -> password: 123 -> button OK -> button Edit -> make the box look 
like:
  REM  *****  BASIC  *****
  
  Sub Main
-       msgbox "中文"
+  msgbox "中文"
  End Sub
  
  -> Run BASIC (F5) and notice a soffice window pops up with:
  中文
  
  click OK button -> Save -> close window msgbox.ods.cmsgboxlib - LibreOffice 
Basic -> close window cmsgbox.ods - LibreOffice Calc -> reopen cmsgbox.ods -> 
click Tools -> Macros -> Run Macro -> expand cmsgbox.ods -> expand cmsgboxlib 
-> click Module1 -> click button Run and an soffice window should pop up with:
  中文
  
  4) What happens instead is it shows:
  ??
  
  End result document may be found at
  
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1038632/+attachment/3358596/+files/cmsgbox.ods
  .
  
  Environment: libreoffice 3.5.x , 3.6.x @ ubuntu 12.04 @ zh_CN.UTF-8
  ---
  ApportVersion: 2.0.1-0ubuntu13
  Architecture: i386
  DistroRelease: Ubuntu 12.04
  InstallationMedia: Xubuntu 12.04 "Precise Pangolin" - Beta i386 (20120228)
  NonfreeKernelModules: nvidia
  Package: libreoffice 1:3.5.4-0ubuntu1.1
  PackageArchitecture: i386
  ProcEnviron:
   LANGUAGE=zh_CN:en
   TERM=xterm
   PATH=(custom, no user)
   LANG=zh_CN.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.2.0-31.50-generic-pae 3.2.28
  Tags:  precise
  Uname: Linux 3.2.0-31-generic-pae i686
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxusers

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038632

Title:
  basic can't use chinese characters while protect

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1038632/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to