30: [YAYA] CHARSETLIBEX not working

ばぐとら研究所統合ToDo管理システムへようこそ!バグ報告に限らず様々な要望を扱うシステムです。
まずは同じような内容がないか [検索] した後、無ければ [新規レポート] で作ってみましょう。
Windows 8以降、高速スタートアップが実装された関係で、SSP以外の部分に起因する不具合発生が出てきました。
何か挙動がおかしいかな、と思ったら、一度再起動(シャットダウン->起動ではなく)してみてから再度確かめてみてください。

最新状況

名前 Roy
概要 [YAYA] CHARSETLIBEX not working
状態 [済]処理済
作成日時 2008-05-22 20:00:23
最終更新日時 2008-06-09 14:29:21

履歴

1 | 2008-05-22 20:00:23 | [−]新規
Roy
When I developing my ghost, one of the SAORIs needs 
"default" encoding and others need "UTF-8" 
encoding. I set "charset.extension, UTF-8" in yaya.txt 
and use CHARSETLIBEX for that SAORI before it load. But it 
doesn't seem working.

Here is my code snippet:
	CHARSETLIBEX("saori\mciaudior.dll", 127);
	_i = FUNCTIONEX("saori\mciaudior.dll", "stop")

2 | 2008-05-25 09:20:46 | [−]新規
ぽな@ばぐとら
Please show me the full file set working.
I think this problem may be not a yaya.dll problem, but a 
yaya_shiori3.dic FUNCTIONEX problem.

3 | 2008-05-25 15:22:20 | [−]新規
Roy
> Please show me the full file set working.
> I think this problem may be not a yaya.dll problem, but a 
> yaya_shiori3.dic FUNCTIONEX problem.
どうぞ。
I used the yaya_shiori3.dic from wiki.
When I drag music files on the ghost, it won't play as encoding 
doesn't fit.
Taromati2_TChinese.nar (application/octet-stream, 2788255 bytes) [ダウンロード]

4 | 2008-05-25 18:54:52 | [○]対応中
ぽな@ばぐとら
OK. I found the problem.
CHARSETLIBEX *cannot set* the encoding that is not previously 
loaded.

Now I had released Tc530-2 to fix this inconvenience.

5 | 2008-05-26 00:29:42 | [○]対応中
Roy
> OK. I found the problem.
> CHARSETLIBEX *cannot set* the encoding that is not previously 
> loaded.
> 
> Now I had released Tc530-2 to fix this inconvenience.
I tested it seem working but I got another case:
my dics are saved in UTF-8 and I set "charset.extension, 
default" for all SAORIs and Weirds.dll needs UTF-8 
encoding.
I set its encoding to 1 and the chars Weirds displayed is 
changed, but it is still wrong.
code snippet:
CHARSETLIBEX("saori\Weirds.dll", 1)
_s=SAORI("saori\Weirds.dll", "set_hwnd", ○
hwnd)

I think %(E_CHARSET) may affect this too.

6 | 2008-05-30 22:54:30 | [○]対応中
Roy
> I think %(E_CHARSET) may affect this too.
I have just confirmed that Charset: in request affect the 
result.
I replaced %(E_CHARSET) to UTF-8 in call request and Weirds.dll 
works great.

CallUTF8
{
	if FUNCTIONLOAD(_argv[0]) == 0 {
		0
		return
	}

	// リクエスト文字列を作成
	_reqheader = /
		"EXECUTE SAORI/1.0%(C_CRLF)Charset: UTF-8%(C_CRLF)Sender: AYA%(C_CRLF)SecurityLevel: Local%(C_CRLF)"
	for _i = 1; _i < _argc; _i++ {
		_reqheader += "Argument%(_i - 1): %(_argv[_i])%(C_CRLF)"
	}
	_reqheader += C_CRLF

	// 実行
	SHIORI3FW.RequestLib(_argv[0], _reqheader)

	if var.lib.result != ''
		var.lib.result
	SHIORI3FW.MakeValueexVariable
}

Maybe we need GETCHARSETLIBEX(libpath) to get the charset ID and 
then translate to charset name like this:

NewFUNCTIONEX
{
	if FUNCTIONLOAD(_argv[0]) == 0 {
		0
		return
	}

	_charset_id = GETCHARSETLIBEX(_argv[0])
	if _charset_id == -1 {
		// Not set with CHARSETLIBEX
		_charset = E_CHARSET
	} else {
		_charset = CHARSETIDTOTEXT(_charset_id)
	}

	// リクエスト文字列を作成
	_reqheader = /
		"EXECUTE SAORI/1.0%(C_CRLF)Charset: %(_charset)%(C_CRLF)Sender: AYA%(C_CRLF)SecurityLevel: Local%(C_CRLF)"
	for _i = 1; _i < _argc; _i++ {
		_reqheader += "Argument%(_i - 1): %(_argv[_i])%(C_CRLF)"
	}
	_reqheader += C_CRLF

	// 実行
	SHIORI3FW.RequestLib(_argv[0], _reqheader)

	if var.lib.result != ''
		var.lib.result
	SHIORI3FW.MakeValueexVariable
}

7 | 2008-06-01 23:27:14 | [○]対応中
ぽな@ばぐとら
Mc513-1 relased.
You can fix this problem with simply replacing

E_CHARSET
to
CHARSETLIBEX(_argv[0])

At Mc513-1, You can get current charset name with simply calling 
CHARSETLIBEX without specifying charset parameter (DLL name 
only).
Please try this!

8 | 2008-06-02 08:03:22 | [○]対応中
Roy
> Mc531-1 relased.
> You can fix this problem with simply replacing
> 
> E_CHARSET
> to
> CHARSETLIBEX(_argv[0])
> 
> At Mc531-1, You can get current charset name with simply calling 
> CHARSETLIBEX without specifying charset parameter (DLL name 
> only).
> Please try this!
It works! Thanks!

9 | 2008-06-09 14:29:21 | [済]処理済
Roy
I think this issue is solved.

[リプライをつける]
Bug Tracking System 影舞 0.8.8
Powered by Ruby 1.8.7