jmxhyz, thank you for attaching the recordings.

The reason why when you open your attachment:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1038632/+attachment/3333286/+files/macro-library-protect.ods

you initially cannot run the macro and see chinese characters, is
because that library is password protected, and you did not input the
password to allow yourself full access to this macro.

In order to do so, one must click Tools -> Macros -> Organize Macros -> 
LibreOffice Basic... -> expand macro-library-protect.ods -> expand Library1 -> 
input Password:
123

-> click button OK -> click button Close -> then click the button:
button show Chinese

and it will show the chinese characters as expected.

Thank you for reporting this. Please feel free to report any future bugs
you may find.

** Changed in: libreoffice (Ubuntu)
       Status: Incomplete => Invalid

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

Title:
  basic can't use chinese characters while protect

Status in “libreoffice” package in Ubuntu:
  Invalid

Bug description:
  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

  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 "中文"
  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

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to