webtrees / geodata

Geographic data for webtrees
9 stars 7 forks source link

tools/export: Undefined index notices #27

Open Amgine0 opened 6 years ago

Amgine0 commented 6 years ago
$ tools/export -vvv
PHP Notice:  Undefined index: Norway/Østfold/Våler in /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php on line 129
PHP Stack trace:
PHP   1. {main}() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/tools/export:0
PHP   2. Symfony\Component\Console\Application->run() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/tools/export:13
PHP   3. Symfony\Component\Console\Application->doRun() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:143
PHP   4. Symfony\Component\Console\Application->doRunCommand() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:241
PHP   5. Webtrees\Geodata\ExportCommand->run() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:865
PHP   6. Webtrees\Geodata\ExportCommand->execute() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Command/Command.php:252
PHP   7. Webtrees\Geodata\ExportCommand->exportData() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php:68

Notice: Undefined index: Norway/Østfold/Våler in /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php on line 129

Call Stack:
    0.0008     390336   1. {main}() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/tools/export:0
    0.8486    1440912   2. Symfony\Component\Console\Application->run() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/tools/export:13
    0.8675    1823264   3. Symfony\Component\Console\Application->doRun() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:143
    0.8676    1823264   4. Symfony\Component\Console\Application->doRunCommand() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:241
    0.8681    1823264   5. Webtrees\Geodata\ExportCommand->run() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:865
    0.8693    1828152   6. Webtrees\Geodata\ExportCommand->execute() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Command/Command.php:252
    0.9219    2068296   7. Webtrees\Geodata\ExportCommand->exportData() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php:68

This may be related to the depth of administrative index?

Amgine0 commented 6 years ago

Just noticed: The undefined index came up for

These are the only komm which have 'å' in their name.

fisharebest commented 6 years ago

Can you add your data to this repository?

fisharebest commented 6 years ago

I think this is caused by the HFS filesystem.

https://stackoverflow.com/questions/6153345/different-utf8-encoding-in-filenames-os-x

It says that filenames are stored using "decomposed" forms, which is a different byte-sequence from the "precomposed" form used in the data.

Can you try using simple ASCII for the file/folder names "Valer", and putting the accented letter as a "translation".

fisharebest commented 6 years ago

FYI, the README.md file says to use ASCII for filenames to avoid these problems...

fisharebest commented 6 years ago

The problems with using decomposed UTF8 is also mentioned here ;-)

https://www.cio.com/article/2868393/linus-torvalds-apples-hfs-is-probably-the-worst-file-system-ever.html

Amgine0 commented 6 years ago

Å = ascii 197 å = ascii 229

Extended ascii, and part of 8859-1, but yes, Apple's HFS is probably at fault. I suppose I can move this over to one of the linux boxen.