Commit Graph

25299 Commits

Author SHA1 Message Date
GUAN Xin
9d5e707350 Start: Properly hash thumbnail filenames
Image filenames should be encoded as URI before being hashed.

Also assume that filenames are already utf8 because the community
has been advertiseing utf8 usage since the beginning of this centry.

Calling .encode("utf8") on strings that are already in utf8 simply
raises the following exception:

  UnicodeDecodeError: 'ascii' codec can't decode byte ...
for non-ascii (already utf8) strings.

It's in fact impossible to precisely determine pathname encoding
because different components within the path may have different
encodings, e.g., a utf8 directory name followed by an MBCS filename
is valid on Linux native filesystems.
It's the user's responsibility to keep the iocharset consistent.
2021-07-21 16:49:06 +08:00
川島和津実
a165c4a805 Merge branch 'FreeCAD:master' into no-filename-encode 2021-07-20 21:21:19 +08:00
GUAN Xin
25e6576118 Revert "Start: Properly hash thumbnail filenames"
This reverts commit 7e1f48369884647d1bc9eb4e9d7e2062b2897c6c.
2021-07-20 21:19:41 +08:00
Bernd Hahnebach
a0480a1376 Start: Properly hash thumbnail filenames 2021-07-20 21:11:24 +08:00
Bernd Hahnebach
73d819a1e1 FEM: calculix writer, use generic elset variable names 2021-07-20 09:54:49 +02:00
Bernd Hahnebach
60739e0b22 FEM: mesh set getter, use ccx independent method names 2021-07-20 09:54:42 +02:00
Bernd Hahnebach
9e89a16078 FEM: mesh set getter, use ccx independent variable names 2021-07-20 09:54:35 +02:00
Bernd Hahnebach
a6e74bf8f0 FEM: material task panel, raise max possible young's modul value 2021-07-19 07:50:04 +02:00
Bernd Hahnebach
2aeba3674a FEM: tasks and writer, use generic solver input writing method name 2021-07-18 14:47:50 +02:00
Bernd Hahnebach
21889b16d5 FEM: writer base, typo 2021-07-18 14:47:43 +02:00
Bernd Hahnebach
c62334412a FEM: mesh set getter, output print 2021-07-18 14:47:36 +02:00
Bernd Hahnebach
e172c07534 FEM: calculix writer, fix time output 2021-07-17 20:46:42 +02:00
Bernd Hahnebach
fcb91f36af FEM: make use of mesh data getter class for calculix solver and ccxtools 2021-07-17 20:46:36 +02:00
Bernd Hahnebach
895c817f56 FEM: calculix writer, use mat geo sets instead of ccx elsets 2021-07-17 20:46:29 +02:00
Yorik van Havre
10faf786c8 Draft: Fixed wrong placement of lines in shape2dview's cutface mode 2021-07-16 12:42:30 +02:00
Yorik van Havre
f8f541c1e7 Draft: Use different icon if object has AutoUpdate turned off 2021-07-16 12:24:26 +02:00
Yorik van Havre
644a77a17f Arch: Fixed windows invert hinge option 2021-07-16 12:22:56 +02:00
Yorik van Havre
1eab74ef4d Arch: Fixed wrong numbering in arch axis in section mode 2021-07-16 12:22:15 +02:00
Bernd Hahnebach
666ce64959 FEM: calculix writer, make use of the member objs everywhere 2021-07-16 08:11:21 +02:00
Bernd Hahnebach
5f57d48b55 FEM: calculix writer, code formating 2021-07-16 08:11:15 +02:00
Bernd Hahnebach
6f254bb27b FEM: mesh data getter, add time and some comments 2021-07-16 08:11:05 +02:00
Bernd Hahnebach
8e39ad5755 FEM: separate getting the mesh sets from writer class 2021-07-15 21:57:02 +02:00
Bernd Hahnebach
e0c9587904 FEM: material task panel, code formating 2021-07-15 21:09:26 +02:00
Bernd Hahnebach
856bc75710 FEM: calculix writer, matgeosets, code formating 2021-07-15 21:03:08 +02:00
Bernd Hahnebach
01c5c1a63c Material editor: add some comments 2021-07-15 09:20:31 +02:00
Bernd Hahnebach
70c8ff15ba Material Editor, code formating 2021-07-15 08:34:51 +02:00
Bernd Hahnebach
29ec98df8d Material, workaround for precision problem 2021-07-15 08:34:49 +02:00
Roy-043
8ae5978146 Draft: fix dimensions with decimals=0 problem
The display_external function in units.py did not handle decimals=0 properly.
2021-07-15 06:24:23 +02:00
Bernd Hahnebach
323f323864 Material: comments 2021-07-15 00:09:58 +02:00
Bernd Hahnebach
800b96d25b FEM: material task panel, catch wrong ThermalConductivity quantity 2021-07-15 00:09:53 +02:00
Bernd Hahnebach
d93e262184 FEM: calculix writer, materials, delete code added by mistake with 68aba941df1 2021-07-15 00:09:47 +02:00
Bernd Hahnebach
56ee4ca2a8 Material: nitrogen card, fix wrong minus which leads to syntax error in unit system 2021-07-14 20:45:33 +02:00
Bernd Hahnebach
dc7e0cb0ce Material: matcard reader, fix some problems 2021-07-14 16:07:36 +02:00
luz paz
b463eca738 Fix FEM and Material typos
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,ontop,orgin,orginx,orginy,ot,pard,parms,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./build/doc/SourceDocu`
2021-07-14 10:48:20 +02:00
Bernd Hahnebach
a8ac4f5fb6 FEM: calculix writer, improve information about units in input file 2021-07-14 10:46:43 +02:00
Bernd Hahnebach
e7efd877d8 FEM: calculix writer, improve floats writing for femelement material 2021-07-14 10:15:18 +02:00
Bernd Hahnebach
fef8689c48 FEM: calculix writer, improve floats writing for femelement geometry 2021-07-14 09:16:47 +02:00
Bernd Hahnebach
bbbb8760ab FEM: calculix writer, continue improve floating point writing for constraints 2021-07-14 09:16:39 +02:00
Bernd Hahnebach
3777067694 FEM: calculix writer, improve floating point writing 2021-07-13 22:27:31 +02:00
Bernd Hahnebach
70b5e77220 FEM: calculix writer, use better writing for young's modulus, improves 3cc7e38434c504 2021-07-13 20:52:48 +02:00
Bernd Hahnebach
ef9d9c7e57 Material: card reader, do not break if error on card reading. 2021-07-13 20:41:38 +02:00
Bernd Hahnebach
3f552500bc Maaterial: card writer, force to use utf-8 2021-07-13 17:55:21 +02:00
Bernd Hahnebach
e9d1af3acc Material: better warning message if card name is not file name 2021-07-13 17:42:25 +02:00
Bernd Hahnebach
df3ba55bf1 Material: matcard writer, print error if no card name is provided on save 2021-07-13 17:42:19 +02:00
Bernd Hahnebach
599e601797 Material: matcard writer, get rid of Python 2 code 2021-07-13 17:42:13 +02:00
Bernd Hahnebach
42aff5d040 FEM: calculix writer, materials, comment 2021-07-13 16:37:27 +02:00
Yorik van Havre
c97e809592 Arch: Better icon for Arch component 2021-07-13 15:46:54 +02:00
Bernd Hahnebach
f579b434f1 FEM: calculix writer, print getting sets time 2021-07-13 13:27:57 +02:00
Yorik van Havre
394e52d7ec Merge pull request #4910 from Roy-043/Arch_Fix_Arch_Wall
Arch: Fix Arch_Wall: block joints where put on the wrong side of offset
2021-07-13 11:29:12 +02:00
Yorik van Havre
2a43e3d0a1 Merge pull request #4883 from steelman/arch-timezone
Arch: Draw solar diagrams for timezones other than UTC and UTC-3
2021-07-13 11:24:34 +02:00