Updated unicode.nsi and removed UserVars.nsi
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7162 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
bdbfff3cf2
commit
219eb59286
4 changed files with 23 additions and 76 deletions
|
@ -1,14 +1,14 @@
|
|||
; unicode is not enabled by default
|
||||
; unicode installers will not be able to run on Windows 9x!
|
||||
; Unicode is not enabled by default
|
||||
; Unicode installers will not be able to run on Windows 9x!
|
||||
Unicode true
|
||||
|
||||
Name "Unicode Games"
|
||||
OutFile "unicode.exe"
|
||||
|
||||
RequestExecutionLevel User
|
||||
ShowInstDetails show
|
||||
|
||||
XPStyle on
|
||||
|
||||
|
||||
Section "Unicode in UI"
|
||||
|
||||
DetailPrint "Hello World!"
|
||||
|
@ -23,8 +23,26 @@ Section "Unicode in UI"
|
|||
|
||||
SectionEnd
|
||||
|
||||
|
||||
Section "Unicode in Files"
|
||||
|
||||
# TODO add file I/O unicode function examples
|
||||
Var /Global Message
|
||||
|
||||
InitPluginsDir
|
||||
FileOpen $0 "$PluginsDir\Test.txt" w
|
||||
IfErrors done
|
||||
FileWriteUTF16LE /BOM $0 "Hello World "
|
||||
FileWriteWord $0 0xD83C # Manually write ${U+1F30D}
|
||||
FileWriteWord $0 0xDF0D # as surrogate-pair
|
||||
FileWriteUTF16LE $0 " and Sun ${U+2600}$\r$\n"
|
||||
FileClose $0
|
||||
|
||||
FileOpen $0 "$PluginsDir\Test.txt" r
|
||||
IfErrors done
|
||||
FileReadUTF16LE $0 $Message
|
||||
FileClose $0
|
||||
|
||||
DetailPrint "Message: $Message"
|
||||
done:
|
||||
|
||||
SectionEnd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue