Page MenuHomePhabricator

Check browser user agent and provide line endings \n for Linux based browsers
Open, Needs TriagePublicFeature

Description

Why

I download the export in the Linux browser, but it has line endings \r\n and not \n.

How

If the word Linux is in the browser user-agent, it will automatically give unix end lines.

Event Timeline

Dusan_Krehel renamed this task from [feedback] <your request here> to [feedback] The auto end line in the export.Jan 23 2023, 6:59 PM
Aklapper renamed this task from [feedback] The auto end line in the export to Check browser user agent and provide line endings \n for Linux based browsers.Jan 23 2023, 6:59 PM

Hi, how does this create an actual problem? Could you please elaborate on your workflow and which tools have problems to handle the current output?

If I click on "Download data" on https://quarry.wmcloud.org/query/70729, so the TSV export is with CRLF line format.

If a person processes the entire export: file_get_contents() and $lines=explode(), then he must count that there are non-Unix line endings. Winding conversion (in code or export).

This is a feature, a bonus. In the unix world, to have the unix line endings.