tshark` fails if its parameters contain Chinese characters (in a path parameter). For example:
wireshark 1.5.1 has solved the problem. but how to correct the source code if i just want to use wireshark1.2.9 ? which code of wireshark1.2.9 should be modified in order to solve the problem. Thanks. asked 15 Sep '11, 19:20 ylda_ljm0620 edited 15 Sep '11, 23:49 |
One Answer:
CommandLineToArgvW requires shell32.lib. You probably just need to make this change to Makefile.nmake. In fact, you may want to apply all the changes committed in r35411. answered 16 Sep '11, 14:14 cmaynard ♦♦ edited 16 Sep '11, 14:17 |
to solve the problem, i modified in tshark.c of wireshark1.2.9 as follow:
but i can not compile successfully. the error :
how should i modify the thark.c?
thanks. It success.
i add shell32.lib to tshark_LIBS in Makefile.nmake, add #include <shellapi.h> in tshark.c.