-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fails to extract if filenames contains non ascii characters #52
Comments
What version of Lhasa please? Run And which OS too? |
Here current lhasa works but looks weird (WSL's ext4)
|
I'm using the package distributed with ubuntu mantic
$ lha
Lhasa v0.4.0 command line LHA tool - Copyright (C) 2011,2012 Simon Howard
$ dpkg --list | grep lha
ii lhasa 0.4.0-1
amd64 lzh archive decompressor
ii liblhasa0:amd64 0.4.0-1
amd64 lzh archive decompression library
Il giorno gio 21 dic 2023 alle ore 23:04 Simon Howard <
***@***.***> ha scritto:
… What version of Lhasa please? Run lha with no arguments and it should say.
—
Reply to this email directly, view it on GitHub
<#52 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVWRXPUAO76UM4K23XWNQDYKSW6RAVCNFSM6AAAAABA676NF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRWHE4DOMRXG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I've also tried by building the source code from this repository (version
0.4.0 ... did I get it right?) but same results
$ git clone https://github.com/fragglet/lhasa.git
Cloning into 'lhasa'...
remote: Enumerating objects: 5022, done.
remote: Counting objects: 100% (1040/1040), done.
remote: Compressing objects: 100% (217/217), done.
remote: Total 5022 (delta 775), reused 1027 (delta 771), pack-reused 3982
Receiving objects: 100% (5022/5022), 3.67 MiB | 248.00 KiB/s, done.
Resolving deltas: 100% (3301/3301), done.
***@***.***:~/develop$ cd lhasa/
***@***.***:~/develop/lhasa$ autoreconf --install
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'autotools'.
libtoolize: copying file 'autotools/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:5: installing 'autotools/compile'
configure.ac:5: installing 'autotools/config.guess'
configure.ac:5: installing 'autotools/config.sub'
configure.ac:4: installing 'autotools/install-sh'
configure.ac:4: installing 'autotools/missing'
Makefile.am: installing './INSTALL'
lib/Makefile.am: installing 'autotools/depcomp'
parallel-tests: installing 'autotools/test-driver'
***@***.***:~/develop/lhasa$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to
x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether make sets $(MAKE)... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating liblhasa.pc
config.status: creating rpm.spec
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating lib/public/Makefile
config.status: creating pkg/Makefile
config.status: creating pkg/config.make
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
$ make
make all-recursive
make[1]: Entering directory '/home/administrator/develop/lhasa'
Making all in doc
make[2]: Entering directory '/home/administrator/develop/lhasa/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/administrator/develop/lhasa/doc'
Making all in lib
make[2]: Entering directory '/home/administrator/develop/lhasa/lib'
Making all in public
make[3]: Entering directory '/home/administrator/develop/lhasa/lib/public'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/administrator/develop/lhasa/lib/public'
make[3]: Entering directory '/home/administrator/develop/lhasa/lib'
CC liblhasa_la-crc16.lo
CC liblhasa_la-ext_header.lo
CC liblhasa_la-lha_arch_unix.lo
CC liblhasa_la-lha_arch_win32.lo
CC liblhasa_la-lha_decoder.lo
CC liblhasa_la-lha_endian.lo
CC liblhasa_la-lha_file_header.lo
CC liblhasa_la-lha_input_stream.lo
CC liblhasa_la-lha_basic_reader.lo
CC liblhasa_la-lha_reader.lo
CC liblhasa_la-macbinary.lo
CC liblhasa_la-null_decoder.lo
CC liblhasa_la-lh1_decoder.lo
CC liblhasa_la-lh5_decoder.lo
CC liblhasa_la-lh6_decoder.lo
CC liblhasa_la-lh7_decoder.lo
CC liblhasa_la-lhx_decoder.lo
CC liblhasa_la-lk7_decoder.lo
CC liblhasa_la-lz5_decoder.lo
CC liblhasa_la-lzs_decoder.lo
CC liblhasa_la-pm1_decoder.lo
CC liblhasa_la-pm2_decoder.lo
CCLD liblhasa.la
make[3]: Leaving directory '/home/administrator/develop/lhasa/lib'
make[2]: Leaving directory '/home/administrator/develop/lhasa/lib'
Making all in pkg
make[2]: Entering directory '/home/administrator/develop/lhasa/pkg'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/administrator/develop/lhasa/pkg'
Making all in src
make[2]: Entering directory '/home/administrator/develop/lhasa/src'
CC lha-main.o
CC lha-filter.o
CC lha-list.o
CC lha-extract.o
CC lha-safe.o
CCLD lha
make[2]: Leaving directory '/home/administrator/develop/lhasa/src'
Making all in test
make[2]: Entering directory '/home/administrator/develop/lhasa/test'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/administrator/develop/lhasa/test'
make[2]: Entering directory '/home/administrator/develop/lhasa'
make[2]: Leaving directory '/home/administrator/develop/lhasa'
make[1]: Leaving directory '/home/administrator/develop/lhasa'
$ sudo make install
Making install in doc
make[1]: Entering directory '/home/administrator/develop/lhasa/doc'
make[2]: Entering directory '/home/administrator/develop/lhasa/doc'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/share/man/man1'
/usr/bin/install -c -m 644 lha.1 '/usr/local/share/man/man1'
make[2]: Leaving directory '/home/administrator/develop/lhasa/doc'
make[1]: Leaving directory '/home/administrator/develop/lhasa/doc'
Making install in lib
make[1]: Entering directory '/home/administrator/develop/lhasa/lib'
Making install in public
make[2]: Entering directory '/home/administrator/develop/lhasa/lib/public'
make[3]: Entering directory '/home/administrator/develop/lhasa/lib/public'
make[3]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/include/liblhasa-1.0'
/usr/bin/install -c -m 644 lhasa.h lha_decoder.h lha_file_header.h
lha_input_stream.h lha_reader.h '/usr/local/include/liblhasa-1.0'
make[3]: Leaving directory '/home/administrator/develop/lhasa/lib/public'
make[2]: Leaving directory '/home/administrator/develop/lhasa/lib/public'
make[2]: Entering directory '/home/administrator/develop/lhasa/lib'
make[3]: Entering directory '/home/administrator/develop/lhasa/lib'
/usr/bin/mkdir -p '/usr/local/lib'
/bin/bash ../libtool --mode=install /usr/bin/install -c liblhasa.la
'/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/liblhasa.so.0.0.0
/usr/local/lib/liblhasa.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f liblhasa.so.0.0.0
liblhasa.so.0 || { rm -f liblhasa.so.0 && ln -s liblhasa.so.0.0.0
liblhasa.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f liblhasa.so.0.0.0
liblhasa.so || { rm -f liblhasa.so && ln -s liblhasa.so.0.0.0 liblhasa.so;
}; })
libtool: install: /usr/bin/install -c .libs/liblhasa.lai /usr/local/lib/
liblhasa.la
libtool: install: /usr/bin/install -c .libs/liblhasa.a
/usr/local/lib/liblhasa.a
libtool: install: chmod 644 /usr/local/lib/liblhasa.a
libtool: install: ranlib /usr/local/lib/liblhasa.a
libtool: finish:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin"
ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/administrator/develop/lhasa/lib'
make[2]: Leaving directory '/home/administrator/develop/lhasa/lib'
make[1]: Leaving directory '/home/administrator/develop/lhasa/lib'
Making install in pkg
make[1]: Entering directory '/home/administrator/develop/lhasa/pkg'
make[2]: Entering directory '/home/administrator/develop/lhasa/pkg'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/administrator/develop/lhasa/pkg'
make[1]: Leaving directory '/home/administrator/develop/lhasa/pkg'
Making install in src
make[1]: Entering directory '/home/administrator/develop/lhasa/src'
make[2]: Entering directory '/home/administrator/develop/lhasa/src'
/usr/bin/mkdir -p '/usr/local/bin'
/bin/bash ../libtool --mode=install /usr/bin/install -c lha
'/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/lha /usr/local/bin/lha
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/administrator/develop/lhasa/src'
make[1]: Leaving directory '/home/administrator/develop/lhasa/src'
Making install in test
make[1]: Entering directory '/home/administrator/develop/lhasa/test'
make[2]: Entering directory '/home/administrator/develop/lhasa/test'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/administrator/develop/lhasa/test'
make[1]: Leaving directory '/home/administrator/develop/lhasa/test'
make[1]: Entering directory '/home/administrator/develop/lhasa'
make[2]: Entering directory '/home/administrator/develop/lhasa'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 liblhasa.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory '/home/administrator/develop/lhasa'
make[1]: Leaving directory '/home/administrator/develop/lhasa'
$ cd ~/amiga-gcc
# Just to make sure I'm using the previously built version:
$ which lha
/usr/local/bin/lha
# But same result
$ lha -xw=build/reqtools/ download/ReqToolsDev.lha
build/reqtools//ReqTools.info - Melted : o
build/reqtools//ReqTools/.Product-Info - Melted : o
build/reqtools//ReqTools/Catalogs/libcat/dansk.ct - Melted : o
build/reqtools//ReqTools/Catalogs/libcat/deutsch.ct - Melted : o
Failed to read file type of
'build/reqtools//ReqTools/Catalogs/libcat/espa�ol.ct'
Il giorno sab 23 dic 2023 alle ore 22:22 Gabriele Rossetti <
***@***.***> ha scritto:
… I'm using the package distributed with ubuntu mantic
$ lha
Lhasa v0.4.0 command line LHA tool - Copyright (C) 2011,2012 Simon Howard
$ dpkg --list | grep lha
ii lhasa 0.4.0-1
amd64 lzh archive decompressor
ii liblhasa0:amd64 0.4.0-1
amd64 lzh archive decompression library
Il giorno gio 21 dic 2023 alle ore 23:04 Simon Howard <
***@***.***> ha scritto:
> What version of Lhasa please? Run lha with no arguments and it should
> say.
>
> —
> Reply to this email directly, view it on GitHub
> <#52 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABVWRXPUAO76UM4K23XWNQDYKSW6RAVCNFSM6AAAAABA676NF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRWHE4DOMRXG4>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
@selganor74 Better attach the log next time. By the way if an archive has Amiga permissions should we assume latin1 encoding..? Because an Amiga never supports Unicode. FYI https://github.com/jca02266/lha#filename-encoding-in-the-archive and jca02266/lha#42. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm installing the amiga-gcc cross complier from https://github.com/bebbo/amiga-gcc .
The
make all-sdk
step fails when extracting the file ReqToolsDev.lha downloaded by the build process.An
lha -t ReqToolsDev.lha
seems to give correct results:but when extracting I obtain this:
The text was updated successfully, but these errors were encountered: