Search found 45 matches

by twu2
2016-10-05 14:33
Forum: libfilezilla
Topic: fz::sprintf("%02x", 10) got " a", not "0a"
Replies: 2
Views: 78039

fz::sprintf("%02x", 10) got " a", not "0a"

fz::sprintf("%02x", 10) got " a", not "0a"
but fz::sprintf("%02d", 2) will get "02".

it's by design or a bug?
by twu2
2016-10-03 15:54
Forum: libfilezilla
Topic: strange result for string <=> wstring <=> utf8 convert under windows
Replies: 2
Views: 18378

strange result for string <=> wstring <=> utf8 convert under windows

Build Environment: Debian sid x86_64 Compile: x86_64-w64-mingw32-gcc 6.1.1 20160815 (current version in Debian sid) Target OS: Windows 10 Pro (Tranditional Chinese) Test code: std::wstring ws = L"test"; printf("ws length = %d\n", ws.size()); // => ws length = 4 std::string s1 = fz::to_utf8(ws); prin...
by twu2
2015-10-29 02:15
Forum: FileZilla and FileZilla Server Development
Topic: no ID_COMPARISON in bookmark dialog
Replies: 2
Views: 2695

no ID_COMPARISON in bookmark dialog

no ID_COMPARISON control in dialogic.xrc, but there's code in bookmark_dialog.cpp, so it will get wxwidget alert while add new bookmark.

attach patch to fix this.
by twu2
2015-08-16 03:56
Forum: FileZilla and FileZilla Server Development
Topic: GetRandomNumber() always return same number in windows platform
Replies: 2
Views: 2957

GetRandomNumber() always return same number in windows platform

sample code: #include <random> #include <iostream> int GetRandomNumber(int min, int max) { if (min >= max) return min; std::uniform_int_distribution<int> dist(min, max); std::random_device rd; return dist(rd); } int main() { for (int i = 0; i < 16; ++i) std::cout << GetRandomNumber(0, 10) << "\n"; }...
by twu2
2013-10-01 03:53
Forum: FileZilla and FileZilla Server Development
Topic: [PATCH] generic proxy per site
Replies: 0
Views: 5384

[PATCH] generic proxy per site

I just file a patch to support generic proxy per site.
http://trac.filezilla-project.org/ticket/8976

if you build the binary with this patch, you need to copy dialogs.xrc to resources folder.
and delete the old queue.sqlite3 file from your profile (schema changed, add new field for proxy).
by twu2
2013-02-01 03:50
Forum: FileZilla and FileZilla Server Development
Topic: IDEA NEW FEATURE FILEZILLA
Replies: 12
Views: 9954

Re: IDEA NEW FEATURE FILEZILLA

mode z?
Is this the feature you want? I think it already supported by filezilla.
by twu2
2011-10-27 09:18
Forum: FileZilla Client Support
Topic: wrong server saved in queue.sqlite3
Replies: 9
Views: 2455

Re: wrong server saved in queue.sqlite3

here is the patch for move sqlite3_reset() after sqlite3_step(): --- FileZilla3/src/interface/queue_storage.orig.cpp 2011-10-26 10:49:31 +0800 +++ FileZilla3/src/interface/queue_storage.cpp 2011-10-27 17:11:24 +0800 @@ -223,8 +223,6 @@ if (!selectLocalPathQuery_) return; - sqlite3_reset(selectLocalP...
by twu2
2011-10-26 08:31
Forum: FileZilla Client Support
Topic: wrong server saved in queue.sqlite3
Replies: 9
Views: 2455

Re: wrong server saved in queue.sqlite3

ok. it was fixed now. based on the sqlite3_step() document: For all versions of SQLite up to and including 3.6.23.1, a call to sqlite3_reset() was required after sqlite3_step() returned anything other than SQLITE_ROW before any subsequent invocation of sqlite3_step(). Failure to reset the prepared s...
by twu2
2011-10-25 07:13
Forum: FileZilla Client Support
Topic: wrong server saved in queue.sqlite3
Replies: 9
Views: 2455

Re: wrong server saved in queue.sqlite3

yes, the sqlite3 documentation said it won't affect. but there's bug in filezilla 3.5.1 now, just connect to server A, add file A1 to queue, then connect to server B, add B1 to queue, then quit filezilla. the data in queue.sqlite3 will point B1 and A1 to server A. run filezilla again, you can see al...
by twu2
2011-10-25 02:40
Forum: FileZilla Client Support
Topic: wrong server saved in queue.sqlite3
Replies: 9
Views: 2455

wrong server saved in queue.sqlite3

if more than one server in queue and quit filezilla client, all files in queue will be saved as 1st server only. --- FileZilla3/src/interface/queue_storage.cpp.orig 2011-10-25 10:25:51 +0800 +++ FileZilla3/src/interface/queue_storage.cpp 2011-10-25 12:54:53 +0800 @@ -694,7 +694,8 @@ if (ret) { sqlit...
by twu2
2011-09-24 12:15
Forum: FileZilla Client Support
Topic: Bug or Feature? FileZilla won't load lowest files from queue
Replies: 2
Views: 980

Bug or Feature? FileZilla won't load lowest files from queue

Hi! FileZilla will ignore the lowest priority files while load them from queue. Is this a bug or a feature? In wxLongLong_t CQueueStorage::Impl::ParseFileFromRow(CFileItem** pItem), it will return INVALID_DATA while priority is 0 (lowest). if (sourceFile.empty() || localPath.empty() || remotePath.Is...
by twu2
2011-04-07 06:08
Forum: FileZilla and FileZilla Server Development
Topic: patch for win64 build
Replies: 5
Views: 4080

Re: patch for win64 build

I just update the patch for wxWidgets, remove some un-necessary cast from int64 to int32. some type I change in this patch, the size in win64 are: sizeof int = 4 sizeof size_t = 8 sizeof ssize_t = 8 sizeof intptr_t = 8 sizeof HANDLE = 8 sizeof HGLOBAL = 8 sizeof HINSTANCE = 8 sizeof LPDEVMODE = 8 si...
by twu2
2011-04-06 11:58
Forum: FileZilla and FileZilla Server Development
Topic: patch for win64 build
Replies: 5
Views: 4080

Re: patch for win64 build

if you want to test this, you can download the binary file build by me, just replace the win32 file in filezilla folder. here is the file: http://sourceforge.net/projects/filezillapv/files/Patched%20FileZilla%20Client/3.4.0_20110407_win64/filezilla_3.4.0_win64_20110407.7z/download edit: update the n...