Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 1/2] fftools: set process code page to UTF-8 on Windows
@ 2023-03-08 21:27 rcombs
  2023-03-08 21:27 ` [FFmpeg-devel] [PATCH 2/2] fftools: enable long path support " rcombs
  0 siblings, 1 reply; 4+ messages in thread
From: rcombs @ 2023-03-08 21:27 UTC (permalink / raw)
  To: ffmpeg-devel

This causes char-based filesystem and other API calls
to accept and produce UTF-8 strings instead of locale-dependent
legacy code page strings, when running on Win10 or newer.

By and large, ffmpeg uses the wide-character equivalents of these APIs,
so this shouldn't have any effect on most usage.
---
 fftools/fftools.manifest | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fftools/fftools.manifest b/fftools/fftools.manifest
index f2708ecb13..eaef6cacf1 100644
--- a/fftools/fftools.manifest
+++ b/fftools/fftools.manifest
@@ -4,6 +4,7 @@
     <asmv3:windowsSettings>
       <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
       <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
+      <activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
     </asmv3:windowsSettings>
   </asmv3:application>
 </assembly>
-- 
2.39.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [FFmpeg-devel] [PATCH 2/2] fftools: enable long path support on Windows
  2023-03-08 21:27 [FFmpeg-devel] [PATCH 1/2] fftools: set process code page to UTF-8 on Windows rcombs
@ 2023-03-08 21:27 ` rcombs
  2023-03-08 21:35   ` Martin Storsjö
  0 siblings, 1 reply; 4+ messages in thread
From: rcombs @ 2023-03-08 21:27 UTC (permalink / raw)
  To: ffmpeg-devel

This allows use of filesystem paths longer than MAX_PATH (260 characters)
on Windows 10 version 1607 and later.

This _may_ be a no-op if a "LongPathsEnabled" isn't set in the registry.
---
 fftools/fftools.manifest | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fftools/fftools.manifest b/fftools/fftools.manifest
index eaef6cacf1..34124c8298 100644
--- a/fftools/fftools.manifest
+++ b/fftools/fftools.manifest
@@ -5,6 +5,7 @@
       <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
       <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
       <activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
+      <longPathAware xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">true</longPathAware>
     </asmv3:windowsSettings>
   </asmv3:application>
 </assembly>
-- 
2.39.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH 2/2] fftools: enable long path support on Windows
  2023-03-08 21:27 ` [FFmpeg-devel] [PATCH 2/2] fftools: enable long path support " rcombs
@ 2023-03-08 21:35   ` Martin Storsjö
  2023-03-08 21:43     ` Ridley Combs
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Storsjö @ 2023-03-08 21:35 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

On Wed, 8 Mar 2023, rcombs wrote:

> This allows use of filesystem paths longer than MAX_PATH (260 characters)
> on Windows 10 version 1607 and later.
>
> This _may_ be a no-op if a "LongPathsEnabled" isn't set in the registry.
> ---
> fftools/fftools.manifest | 1 +
> 1 file changed, 1 insertion(+)

Are you aware of the changes in c5aba39a041fdaac267fc8c6a2ef745a94a2b0da 
last year? That was supposed to make this change redundant, and make long 
paths usable even on versions of Windows older than that.

// Martin

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH 2/2] fftools: enable long path support on Windows
  2023-03-08 21:35   ` Martin Storsjö
@ 2023-03-08 21:43     ` Ridley Combs
  0 siblings, 0 replies; 4+ messages in thread
From: Ridley Combs @ 2023-03-08 21:43 UTC (permalink / raw)
  To: ffmpeg-devel



> On Mar 8, 2023, at 15:35, Martin Storsjö <martin@martin.st> wrote:
> 
> On Wed, 8 Mar 2023, rcombs wrote:
> 
>> This allows use of filesystem paths longer than MAX_PATH (260 characters)
>> on Windows 10 version 1607 and later.
>> 
>> This _may_ be a no-op if a "LongPathsEnabled" isn't set in the registry.
>> ---
>> fftools/fftools.manifest | 1 +
>> 1 file changed, 1 insertion(+)
> 
> Are you aware of the changes in c5aba39a041fdaac267fc8c6a2ef745a94a2b0da last year? That was supposed to make this change redundant, and make long paths usable even on versions of Windows older than that.
> 
> // Martin

I hadn't seen that change, but I do think it's still worth signaling our support for long paths explicitly.

> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-08 21:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08 21:27 [FFmpeg-devel] [PATCH 1/2] fftools: set process code page to UTF-8 on Windows rcombs
2023-03-08 21:27 ` [FFmpeg-devel] [PATCH 2/2] fftools: enable long path support " rcombs
2023-03-08 21:35   ` Martin Storsjö
2023-03-08 21:43     ` Ridley Combs

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git