OlehOnyshchcak added a comment.
I just want to give my perspective on an issue in order for it to be better triaged: 1. pywikibot claims to support both Windows and Linux systems, so functionality must have a common denominator of "what is acceptable on all systems". If pywikibot doesn't support Windows anymore, probably we will need to remove the installation instructions for Windows <https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation> to avoid confusion. 2. if we don't support Windows anymore, it's still beneficial to restrict filenames to the POSIX portable filename character set <https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.bpxa400/bpxug469.htm>, which will guarantee that filename is portable between all Posix-like systems. For example, Kaggle, which is arguably one of the most popular platforms for data storage & processing, relies on the above-mentioned restrictions. Just a few days ago it was explained to me <https://www.kaggle.com/product-feedback/119783#post686373>, that Kaggle does not support filenames not following POSIX portable filename character set. And probably, there are a lot of other use cases when this becomes unportable. To sum up, it was a misleading experience for me to have an API flag `.title(as_filename=True)`, which actually produces valid filepath only in some specific cases. In the end, I end up having a code equivalent to `convert_to_portable_filename(img.title(as_filename=True))`, which doesn't seem right and also wasted me a lot of time in the process of realizing that I need to implement this and re-download data. So it would be great to either 1) guarantee that filename is valid under any circumstances (i.e. under POSIX portable filename character set) 2) or add another option e.g. `.title(as_portable_filename=True)` 3) or remove `.title(as_filename=True)` flag completely to avoid confusions and make it clear that user is required to convert titles to filenames on their own Thanks, Oleh TASK DETAIL https://phabricator.wikimedia.org/T236614 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: OlehOnyshchcak Cc: Dvorapa, HAKSOAT, Mpaa, Aklapper, pywikibot-bugs-list, Miriam, OlehOnyshchcak, AndreasTraut, Chaytanya, Zkhalido, Viztor, DannyS712, Wenyi, Kieubinhtb, Guilhermebm, Mh-3110, Asad_Ali_Palijo, Lahi, Soteriaspace, RazeSoldier, JakeTheDeveloper, Tbscho, MayS, Mdupont, JJMC89, D3r1ck01, Altostratus, Avicennasis, MuhammadShuaib, Tmalhotra, SimmeD, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
