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

file upload fails on umlauts #28

Open
machinekoder opened this issue Mar 20, 2015 · 12 comments
Open

file upload fails on umlauts #28

machinekoder opened this issue Mar 20, 2015 · 12 comments
Labels

Comments

@machinekoder
Copy link
Member

When the name of the uploaded file contains an umlaut the upload fails with an error.

@sirop
Copy link
Contributor

sirop commented Feb 28, 2016

Maybe, this:

ICU

From Qt 5.3 and onwards, configure does not link Qt Core against ICU libraries anymore by default. This reduces the size of a self-contained application package considerably.

Letting Qt Core utilize the ICU libraries however has following advantages:

Behavior matches other platforms more closely.
Extended set of text codecs (see QTextCodec).

https://doc-snapshots.qt.io/qt5-5.6/windows-requirements.html

@sirop
Copy link
Contributor

sirop commented Feb 28, 2016

Then this https://sourceforge.net/projects/qt64ng/files/qt/x86-64/5.5.0/msvc2013/
should be a remedy on Windows as this build inludes ICU in contrast to the official build
from http://www.qt.io/download-open-source/ .

ls ../Qt/qt-5.4.2-x64-msvc2013-opengl-rev0/qt-5.4.2-x64-msvc2013-opengl-rev0/bin/icu*
../Qt/qt-5.4.2-x64-msvc2013-opengl-rev0/qt-5.4.2-x64-msvc2013-opengl-rev0/bin/icudt55.dll
../Qt/qt-5.4.2-x64-msvc2013-opengl-rev0/qt-5.4.2-x64-msvc2013-opengl-rev0/bin/icuin55.dll
../Qt/qt-5.4.2-x64-msvc2013-opengl-rev0/qt-5.4.2-x64-msvc2013-opengl-rev0/bin/icuuc55.dll

@sirop
Copy link
Contributor

sirop commented Feb 29, 2016

@yishinli
Could you please confirm that this bug is also valid for Chinese hieroglyphs.
If so, then we can be sure that it is about missing ICU libs in the officail Qt build.

@machinekoder
Copy link
Member Author

At least I have not heard about it. Can you please test it ans send me the results. It's not unlikely that it is just a problem in QtQuickVcp and not Qt.

@sirop
Copy link
Contributor

sirop commented Feb 29, 2016

I guess I have to follow https://github.com/strahlex/QtQuickVcp/wiki/Testing-mkwrapper
to test it?

@machinekoder
Copy link
Member Author

Yes, or use https://github.com/strahlex/mkwrapper-sim

@sirop
Copy link
Contributor

sirop commented Mar 1, 2016

Ok, I tried the easy way:

slave@debian-slave:~/machinekit-sirop$ git clone https://github.com/thecooltool/machinekit-configs.git cooltool
slave@debian-slave:~/machinekit-sirop$ mklauncher cooltool/

The I get this on the MachinekitClient:

machinekitclient_cooltool

So what shall I do to provoke that error?
Rename UniStep* to something like Ünißtep*?

@machinekoder
Copy link
Member Author

Upload a gcode file named äüß.ngc and see what happens

@sirop
Copy link
Contributor

sirop commented Mar 2, 2016

Sorry for the delay, as I do it for the first time.

I did:

mkdir repos
git clone https://github.com/strahlex/Cetus.git

From another terminal over ssh:
mklauncher mkwrapper-sim/ .

Then I copied the contents of https://github.com/thecooltool/machinekit-configs/blob/master/UNI-PRINT-3D/subroutines/g22.ngc to öäü.ngc and öab.ngc. Tried to open these files over Cetus:
machinekitclient_cetus_umlaut_small

The third error in the pic is about nöc_ballet_original.jpg.

On the remote machine with Machinekit installed:

cml@debian-cml2:~/repos$ ls -ls ../nc_files/*.ngc
4 -rw-r--r-- 1 cml cml 1593 Mar  2 04:54 ../nc_files/�ab.ngc
4 -rw-r--r-- 1 cml cml 1593 Mar  2 04:49 ../nc_files/���.ngc
0 -rw-r--r-- 1 cml cml    0 Mar  2 04:57 ../nc_files/nöc_ballet_original.ngc

It is strange that ö was transmitted properly in case of nöc_ballet_original.jpg .

Maybe, we should not forget either that protobuf - at least as used with machinekit - supports
only 7 bit ASCII.

@sirop
Copy link
Contributor

sirop commented Mar 6, 2016

Just confirmed the test results with your http://buildbot.roessler.systems/files/machinekit-client/machinekit-client_v0.9.6-3-g75cd-126_windows_x86.zip build which - as I understand - was built
with official Qt and therefore without ICU libs. Got the same errros with the three files as above.

So at least the main reason is not ICU within Qt.

@yishinli
Copy link
Contributor

yishinli commented Mar 7, 2016

@yishinli
Could you please confirm that this bug is also valid for Chinese hieroglyphs.

The Machinekit-client can not display Chinese words correctly. Please take a look of the following picture:
2016-03-07_chinese
The Chinese file name should be 2016-03-07_週期測試.ngc

I've set LANG variables before starting machinekit-client.

export LANG=zh_TW.UTF-8
export LANGUAGE=zh_TW.UTF-8

Regards,

@machinekoder
Copy link
Member Author

@yishinli I think that's a different issue. I think Qt needs to be configured to support Chinese characters so it might be good to create a separate issue.

machinekoder added a commit that referenced this issue Oct 6, 2017
17f1db7 nzmqt.hpp - add #ifdefs around constants which were not available in older 0MQ
416f92c nzmqt.hpp - add some more MQ constants
8c0a6d0 Merge pull request #43 from mwallnoefer/master
aef9b64 Revert "Explicitly use constructor from base class"
65a515f Merge pull request #41 from jonesmz/more-cpp11-connect
870c5c9 Merge pull request #42 from jonesmz/trigger-signal-directly
668d31e Trigger the messageReceived signal directly, instead of using a trampoline
3ca1449 Switches the timer single shot connect statements to use the cpp11 syntax
c26f292 Merge pull request #39 from jonesmz/cpp11
ed0f258 Replace nearly-identical member funcitons with a template function
25143e4 Use temporary lifetime extension, and std::move where appropriate
4cf3ad4 Simplify a few for-loops
fa0ec1d Use super-class's copy function instead of implementing one that simply forwards the arguments
2367408 Use nullptr instead of literal 0
c2e3029 Use c++11 style connect, instead of old string matching version
09f35ce Merge pull request #40 from jonesmz/dontwait
dd79691 Rename options SND_NOBLOCK and RCV_NOBLOCK to SND_DONTWAIT and RCV_DONTWAIT to match zeromq's name for the option
d2ce011 Use override keyword where appropriate
0cfc704 Explicitly use constructor from base class
e229f32 Merge pull request #37 from mwallnoefer/master
eb365df add more 0MQ socket constants
88d6833 Merge pull request #36 from mwallnoefer/master
351c07a add the ReceiveFlags on each receiveMessage() method
1812aec update outdated zmq.hpp
2fbb521 Merge pull request #35 from mwallnoefer/patch-1
df46c93 impl.hpp - properly cast size_t to int
4b072ff Update zmq.hpp
7d36161 Merge pull request #33 from sampaioletti/master
e52f416 Changed fileDescriptor Type to support win_64
a3a99e9 Merge pull request #31 from strahlex/notifier
861535c implemented SocketNotifierZMQSocket
8f71eac Merge pull request #28 from grefab/master
e8f196a Added methods to unbind, disconnect and configure high watermarks to ZMQSocket.
0dc6b20 Merge pull request #23 from strahlex/master
303f107 added pri file to make inclusion to other Qt projects easier
4611924 Merge pull request #22 from strahlex/master

git-subtree-dir: 3rdparty/nzmqt
git-subtree-split: 17f1db7927b0beb37a20221c646da522e88d66f8
ftkalcevic pushed a commit to ftkalcevic/QtQuickVcp that referenced this issue Dec 20, 2017
Added methods to unbind, disconnect and configure high watermarks to ZMQSocket
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

3 participants