Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: 脚本 #304

Closed
sir2k opened this issue Feb 20, 2020 · 2 comments
Closed

bug: 脚本 #304

sir2k opened this issue Feb 20, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@sir2k
Copy link

sir2k commented Feb 20, 2020

环境:
madedit-mod 0.4.18+ win10 ltsc

bug复现:
1、使用下列脚本获取当前文件名:
me = MadEdit()
s=me.GetFileName()
MsgBox(s)
me=None

2、如果文件名是全英文的可以显示带路径的文件名
如果文件名包含有中文则显示一个空串

3、原本想借助脚本实现文件名是“未命名”时,存盘时会自动以第一行文字作为默认文件名

@LiMinggang
Copy link
Owner

这个应该是字符串encoding问题

@LiMinggang LiMinggang self-assigned this Feb 21, 2020
@LiMinggang LiMinggang added the bug label Feb 21, 2020
@LiMinggang LiMinggang added this to the 0.4.19 milestone Feb 21, 2020
@LiMinggang
Copy link
Owner

LiMinggang commented Feb 25, 2020

下个版本你可以用python的print去打印debug信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants