Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package editorconfig-core-c for
openSUSE:Factory checked in at 2026-03-01 22:14:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/editorconfig-core-c (Old)
and /work/SRC/openSUSE:Factory/.editorconfig-core-c.new.29461 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "editorconfig-core-c"
Sun Mar 1 22:14:01 2026 rev:15 rq:1335516 version:0.12.10
Changes:
--------
--- /work/SRC/openSUSE:Factory/editorconfig-core-c/editorconfig-core-c.changes
2025-06-10 08:59:40.013466684 +0200
+++
/work/SRC/openSUSE:Factory/.editorconfig-core-c.new.29461/editorconfig-core-c.changes
2026-03-01 22:14:29.733151390 +0100
@@ -1,0 +2,9 @@
+Sun Feb 22 17:43:19 UTC 2026 - Andreas Stieger <[email protected]>
+
+- update to 0.12.10:
+ * Make path splitting algorithm UNC-aware
+ * Update utarray.h to 2.3.0
+ * Miscellaneous fixes
+- drop 0001-Generate-output-directories-before-building-manpages.patch
+
+-------------------------------------------------------------------
Old:
----
0001-Generate-output-directories-before-building-manpages.patch
editorconfig-core-c-0.12.9.tar.gz
New:
----
editorconfig-core-c-0.12.10.tar.gz
----------(Old B)----------
Old: * Miscellaneous fixes
- drop 0001-Generate-output-directories-before-building-manpages.patch
----------(Old E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ editorconfig-core-c.spec ++++++
--- /var/tmp/diff_new_pack.tZwD36/_old 2026-03-01 22:14:30.477181968 +0100
+++ /var/tmp/diff_new_pack.tZwD36/_new 2026-03-01 22:14:30.481182132 +0100
@@ -2,7 +2,7 @@
# spec file for package editorconfig-core-c
#
# Copyright (c) 2025 SUSE LLC
-# Copyright (c) 2024 Andreas Stieger <[email protected]>
+# Copyright (c) 2026 Andreas Stieger <[email protected]>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
Name: editorconfig-core-c
-Version: 0.12.9
+Version: 0.12.10
Release: 0
Summary: EditorConfig core library written in C
License: BSD-2-Clause AND BSD-3-Clause
@@ -26,8 +26,6 @@
URL: https://editorconfig.org/
Source:
https://github.com/editorconfig/editorconfig-core-c/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: baselibs.conf
-# PATCH-FIX-UPSTREAM
0001-Generate-output-directories-before-building-manpages.patch bsc#1243568
[email protected] -- fix intermittent build failure when generating man pages.
-Patch0: 0001-Generate-output-directories-before-building-manpages.patch
BuildRequires: cmake >= 3.16.3
BuildRequires: doxygen
BuildRequires: pkgconfig
@@ -86,9 +84,7 @@
%autosetup -p1
%build
-%cmake \
- -DLIB_SUFFIX=%{_lib} \
- %{nil}
+%cmake
%make_build
%install
@@ -102,20 +98,21 @@
%files -n editorconfig
%license LICENSE
-%{_bindir}/editorconfig*
-%{_mandir}/man1/editorconfig*
-%{_mandir}/man5/editorconfig*
+%{_bindir}/editorconfig
+%{_bindir}/editorconfig-%{version}
+%{_mandir}/man1/*.1%{?ext_man}
+%{_mandir}/man5/*.5%{?ext_man}
%files -n libeditorconfig0
%license LICENSE
-%{_libdir}/libeditorconfig.so.0*
+%{_libdir}/libeditorconfig.so.0{,.*}
%files -n libeditorconfig-devel
%license LICENSE
%doc CONTRIBUTORS README.md
%{_includedir}/editorconfig
%{_libdir}/libeditorconfig.so
-%{_mandir}/man3/editorconfig*
+%{_mandir}/man3/*.3%{?ext_man}
%{_libdir}/pkgconfig/editorconfig.pc
%{_libdir}/cmake/EditorConfig
++++++ editorconfig-core-c-0.12.9.tar.gz -> editorconfig-core-c-0.12.10.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/editorconfig-core-c-0.12.9/.github/workflows/CI_build.yml
new/editorconfig-core-c-0.12.10/.github/workflows/CI_build.yml
--- old/editorconfig-core-c-0.12.9/.github/workflows/CI_build.yml
2024-06-17 01:57:14.000000000 +0200
+++ new/editorconfig-core-c-0.12.10/.github/workflows/CI_build.yml
2025-10-04 02:28:10.000000000 +0200
@@ -7,19 +7,19 @@
runs-on: windows-2022
strategy:
- max-parallel: 6
+ fail-fast: false
matrix:
build_configuration: [Release, Debug]
build_platform: [x64, arm64, x86]
build_vsver: [17]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
with:
submodules: recursive
- name: Download PCRE2 sources
- run: ./init.ps1 -pcre "10.40"
+ run: ./init.ps1 -pcre "10.46"
- name: Build and install PCRE2
run: ./build.ps1 -proj pcre2 -config ${{ matrix.build_configuration }}
-arch ${{ matrix.build_platform }} -vsver ${{ matrix.build_vsver }} -init
-install
@@ -31,20 +31,42 @@
if: matrix.build_platform == 'x86' || matrix.build_platform == 'x64'
run: ./test.ps1 -proj core -config ${{ matrix.build_configuration }}
-arch ${{ matrix.build_platform }}
+ - name: Get short SHA
+ run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >>
$env:GITHUB_ENV
+
+ - name: zip artifacts for ${{ matrix.build_platform }} on ${{
github.ref_name }} with sha ${{ github.sha }}
+ if: matrix.build_configuration == 'Release'
+ run: 7z a editorconfig-core-c_${{ env.SHORT_SHA }}_${{
matrix.build_platform }}.zip .\bin\${{ matrix.build_platform }}-static\build\*
+
+ - name: Archive artifacts for ${{ matrix.build_platform }}
+ if: matrix.build_configuration == 'Release'
+ uses: actions/upload-artifact@v4
+ with:
+ name: editorconfig-core-c_${{ env.SHORT_SHA }}_${{
matrix.build_platform }}.zip
+ path: editorconfig-core-c_${{ env.SHORT_SHA }}_${{
matrix.build_platform }}.zip
+
+ - name: Create release on tagging
+ uses: softprops/action-gh-release@v2
+ if: startsWith(github.ref, 'refs/tags/')
+ with:
+ files: editorconfig-core-c_${{ env.SHORT_SHA }}_${{
matrix.build_platform }}.zip
+
+
+
build_linux:
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-24.04
strategy:
- max-parallel: 4
+ fail-fast: false
matrix:
compiler:
- - { compiler: GNU, CC: gcc-11, CXX: g++-11 }
- - { compiler: LLVM, CC: clang-14, CXX: clang++-14 }
+ - { compiler: GNU, CC: gcc-14, CXX: g++-14 }
+ - { compiler: LLVM, CC: clang-18, CXX: clang++-18 }
build_configuration: [Release, Debug]
build_platform: ["Unix Makefiles"]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
with:
submodules: recursive
@@ -60,6 +82,36 @@
run: |
mkdir _build
cd _build
+ cmake -G "${{ matrix.build_platform }}"
-DCMAKE_INSTALL_PREFIX=../_install ..
+
+ - name: build cmake
+ run: |
+ cd _build
+ cmake --build . --config ${{ matrix.build_configuration }} --target
install
+
+ - name: run tests
+ run: |
+ cd _build
+ ctest -VV --output-on-failure .
+
+ build_macos:
+
+ runs-on: macos-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ build_configuration: [Release, Debug]
+ build_platform: ["Unix Makefiles"]
+
+ steps:
+ - uses: actions/checkout@v5
+ with:
+ submodules: recursive
+
+ - name: generate cmake
+ run: |
+ mkdir _build
+ cd _build
cmake -G "${{ matrix.build_platform }}"
-DCMAKE_INSTALL_PREFIX=../_install ..
- name: build cmake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/CHANGELOG
new/editorconfig-core-c-0.12.10/CHANGELOG
--- old/editorconfig-core-c-0.12.9/CHANGELOG 2024-06-17 01:57:14.000000000
+0200
+++ new/editorconfig-core-c-0.12.10/CHANGELOG 2025-10-04 02:28:10.000000000
+0200
@@ -1,3 +1,9 @@
+v0.12.10
+
+- Make path splitting algorithm UNC-aware (#135)
+- Update utarray.h to 2.3.0 (#137)
+- Miscellaneous fixes.
+
v0.12.9
- lib/ec_glob: Fix potentially uninitialized variable warning.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/CMakeLists.txt
new/editorconfig-core-c-0.12.10/CMakeLists.txt
--- old/editorconfig-core-c-0.12.9/CMakeLists.txt 2024-06-17
01:57:14.000000000 +0200
+++ new/editorconfig-core-c-0.12.10/CMakeLists.txt 2025-10-04
02:28:10.000000000 +0200
@@ -1,7 +1,7 @@
# CMakeLists.txt for core testing in
# editorconfig-core-c.
#
-# Copyright (c) 2011-2024 EditorConfig Team
+# Copyright (c) 2011-2025 EditorConfig Team
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -29,7 +29,7 @@
cmake_minimum_required(VERSION 3.16.3)
cmake_policy(VERSION 3.16.3)
-project(editorconfig VERSION "0.12.9" LANGUAGES C)
+project(editorconfig VERSION "0.12.10" LANGUAGES C)
set(PROJECT_VERSION_SUFFIX "")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/INSTALL.md
new/editorconfig-core-c-0.12.10/INSTALL.md
--- old/editorconfig-core-c-0.12.9/INSTALL.md 2024-06-17 01:57:14.000000000
+0200
+++ new/editorconfig-core-c-0.12.10/INSTALL.md 2025-10-04 02:28:10.000000000
+0200
@@ -86,13 +86,6 @@
documentation, try to set this option to the path to doxygen.
e.g. cmake -DDOXYGEN_EXECUTABLE=/opt/doxygen/bin/doxygen .
- -DMSVC_MD=[ON|OFF] Default: OFF
- Use /MD instead of /MT flag when compiling with Microsoft Visual C++. This
- option takes no effect when using compilers other than Microsoft Visual
- C++. Note that the option chosen here must be consistent with PCRE2.
- e.g. We want to use /MD instead of /MT when compiling with MSVC.
- cmake -DMSVC_MD=ON .
-
On UNIX/Linux with gcc, the project file is often a Makefile, in which case you
can type "make" to compile editorconfig. If you are using a different compiler
or platform the compilation command may differ. For example, if you generate an
@@ -126,7 +119,7 @@
You have to download and extract the pcre2 sources after checkout.
```powershell
-~> ./init.ps1 [-pcre "10.40"]
+~> ./init.ps1 [-pcre "10.46"]
```
Arguments:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/README.md
new/editorconfig-core-c-0.12.10/README.md
--- old/editorconfig-core-c-0.12.9/README.md 2024-06-17 01:57:14.000000000
+0200
+++ new/editorconfig-core-c-0.12.10/README.md 2025-10-04 02:28:10.000000000
+0200
@@ -3,7 +3,6 @@
[](../../releases/latest)
[](https://github.com/editorconfig/editorconfig-core-c/actions/workflows/CI_build.yml)
-[](https://ci.appveyor.com/project/xuhdev/editorconfig-core-c/branch/master)
EditorConfig makes it easy to maintain the correct coding style when switching
between different text editors and between different projects. The
@@ -38,7 +37,7 @@
For help with the EditorConfig C Core code, please write to our
[mailing list][]. Bugs and feature requests should be submitted to our
[issue tracker][]. If you find any security bugs, please report them at the
-[security page][]..
+[security page][].
If you are writing a plugin a language that can import C libraries, you may
want to import and use the EditorConfig library directly. If you do use the
@@ -57,7 +56,7 @@
distributed under their own license (see the source file for details). See the
LICENSE file for details.
-[EditorConfig]: http://editorconfig.org "EditorConfig Homepage"
+[EditorConfig]: https://editorconfig.org "EditorConfig Homepage"
[INSTALL.md]:
https://github.com/editorconfig/editorconfig-core-c/blob/master/INSTALL.md
[mailing list]: http://groups.google.com/group/editorconfig "EditorConfig
mailing list"
[issue tracker]: https://github.com/editorconfig/editorconfig-core-c/issues
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/SECURITY.md
new/editorconfig-core-c-0.12.10/SECURITY.md
--- old/editorconfig-core-c-0.12.9/SECURITY.md 1970-01-01 01:00:00.000000000
+0100
+++ new/editorconfig-core-c-0.12.10/SECURITY.md 2025-10-04 02:28:10.000000000
+0200
@@ -0,0 +1,9 @@
+# Security Policy
+
+## Supported Versions
+
+Only the latest release is supported. However, if you use a downstream OS
distribution (e.g., Ubuntu, Debian, Fedora, FreeBSD), they may patch out
security bugs without following our latest releases.
+
+## Reporting a Vulnerability
+
+Please report them in the [security
page](https://github.com/editorconfig/editorconfig-core-c/security/advisories).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/appveyor.yml
new/editorconfig-core-c-0.12.10/appveyor.yml
--- old/editorconfig-core-c-0.12.9/appveyor.yml 2024-06-17 01:57:14.000000000
+0200
+++ new/editorconfig-core-c-0.12.10/appveyor.yml 1970-01-01
01:00:00.000000000 +0100
@@ -1,31 +0,0 @@
-image:
- - Visual Studio 2022
-
-environment:
- CONFIG: Release
- VSVER: 17
- matrix:
- - ARCH: x86
- - ARCH: x64
- #- ARCH: arm64
-
-install:
- - cmake --version
- - git submodule update --init
- # Download PCRE2 sources
- - ps: ./init.ps1 -pcre "10.40"
- # Build and install PCRE2
- - ps: ./build.ps1 -proj pcre2 -config $env:CONFIG -arch $env:ARCH -vsver
$env:VSVER -init -install
-
-build_script:
- # Build and install editorconfig-core-c
- - ps: ./build.ps1 -proj core -config $env:CONFIG -arch $env:ARCH -vsver
$env:VSVER -init -install
-
-test_script:
- # Run the core tests
- - ps: ./test.ps1 -proj core -config $env:CONFIG -arch $env:ARCH
-
-on_failure:
- - echo. && echo. && echo. && echo "Tests for editorconfig-core-c failed.
Here is their detailed output:" && echo. && echo. && echo.
- - cd .\bin\%ARCH%-static\core\Testing\Temporary\
- - type LastTest.log
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/build.ps1
new/editorconfig-core-c-0.12.10/build.ps1
--- old/editorconfig-core-c-0.12.9/build.ps1 2024-06-17 01:57:14.000000000
+0200
+++ new/editorconfig-core-c-0.12.10/build.ps1 2025-10-04 02:28:10.000000000
+0200
@@ -109,19 +109,17 @@
mkdir $dest -ErrorAction SilentlyContinue | Out-Null
Push-Location $dest
try {
+ $MsvcRuntime = if($static -eq "ON") { "MultiThreaded" } else {
"MultiThreadedDLL" }
switch ($proj) {
pcre2 {
$BUILD_SHARED_LIBS = "ON"
if ($static -eq "ON"){ $BUILD_SHARED_LIBS = "OFF"}
- exec { cmake -G "$gen" -A $cmake_arch
-DCMAKE_INSTALL_PREFIX="$PREFIX" -DPCRE2_STATIC_RUNTIME="$static" `
+ exec { cmake -G "$gen" -A $cmake_arch
-DCMAKE_INSTALL_PREFIX="$PREFIX" -DPCRE2_STATIC_RUNTIME="$static"
-DCMAKE_MSVC_RUNTIME_LIBRARY="$MsvcRuntime" `
-DBUILD_SHARED_LIBS="$BUILD_SHARED_LIBS"
-DPCRE2_BUILD_PCRE2GREP="OFF" -DPCRE2_BUILD_TESTS="OFF" `
"../../pcre2" }
}
core {
- $MSVC_MD = "ON"
- if ($static -eq "ON"){ $MSVC_MD = "OFF"}
- exec { cmake -G "$gen" -A $cmake_arch
-DCMAKE_INSTALL_PREFIX="$PREFIX" -DMSVC_MD="$MSVC_MD" -DPCRE2_STATIC="$static" `
- "../../../." }
+ exec { cmake -G "$gen" -A $cmake_arch
-DCMAKE_INSTALL_PREFIX="$PREFIX" -DCMAKE_MSVC_RUNTIME_LIBRARY="$MsvcRuntime"
-DPCRE2_STATIC="$static" "../../../." }
}
}
} finally {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/doc/CMakeLists.txt
new/editorconfig-core-c-0.12.10/doc/CMakeLists.txt
--- old/editorconfig-core-c-0.12.9/doc/CMakeLists.txt 2024-06-17
01:57:14.000000000 +0200
+++ new/editorconfig-core-c-0.12.10/doc/CMakeLists.txt 2025-10-04
02:28:10.000000000 +0200
@@ -71,6 +71,8 @@
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/man/man1/editorconfig.1
COMMAND
+ ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/man
+ COMMAND
${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile-1"
MAIN_DEPENDENCY
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
@@ -88,6 +90,8 @@
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/man/man5/editorconfig-format.5
COMMAND
+ ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/man
+ COMMAND
${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile-5"
MAIN_DEPENDENCY
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/editorconfig-core-c-0.12.9/include/editorconfig/editorconfig_handle.h
new/editorconfig-core-c-0.12.10/include/editorconfig/editorconfig_handle.h
--- old/editorconfig-core-c-0.12.9/include/editorconfig/editorconfig_handle.h
2024-06-17 01:57:14.000000000 +0200
+++ new/editorconfig-core-c-0.12.10/include/editorconfig/editorconfig_handle.h
2025-10-04 02:28:10.000000000 +0200
@@ -50,7 +50,7 @@
typedef void* editorconfig_handle;
/*!
- * @brief Create and intialize a default editorconfig_handle object.
+ * @brief Create and initialize a default editorconfig_handle object.
*
* @retval NULL Failed to create the editorconfig_handle object.
*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/init.ps1
new/editorconfig-core-c-0.12.10/init.ps1
--- old/editorconfig-core-c-0.12.9/init.ps1 2024-06-17 01:57:14.000000000
+0200
+++ new/editorconfig-core-c-0.12.10/init.ps1 2025-10-04 02:28:10.000000000
+0200
@@ -1,5 +1,5 @@
param(
- $pcre="10.40"
+ $pcre="10.46"
)
$ErrorActionPreference="Stop"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/src/CMakeLists.txt
new/editorconfig-core-c-0.12.10/src/CMakeLists.txt
--- old/editorconfig-core-c-0.12.9/src/CMakeLists.txt 2024-06-17
01:57:14.000000000 +0200
+++ new/editorconfig-core-c-0.12.10/src/CMakeLists.txt 2025-10-04
02:28:10.000000000 +0200
@@ -62,24 +62,6 @@
include_directories(BEFORE
"${PROJECT_SOURCE_DIR}/include")
-if(WIN32)
- # MSVC_MD option
- option(MSVC_MD
- "Use /MD instead of /MT flag when compiling with Microsoft Visual C++.
This option takes no effect when using compilers other than Microsoft Visual
C++."
- OFF)
-endif()
-
-# replace all /MD with /MT for msvc if MSVC_MD is off
-if(MSVC AND NOT MSVC_MD)
- foreach(flag_var
- CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
- CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
- if(${flag_var} MATCHES "/MD")
- string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
- endif(${flag_var} MATCHES "/MD")
- endforeach(flag_var)
-endif()
-
# Use unsigned char to represent plain char
if(MSVC)
add_definitions("-J")
@@ -87,6 +69,13 @@
add_definitions("-funsigned-char")
endif()
+# Use high warning levels
+if(MSVC)
+ add_compile_options(/W4 /WX)
+else()
+ add_compile_options(-Wall -Wextra -Wpedantic -Werror)
+endif()
+
add_subdirectory(lib)
add_subdirectory(bin)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/src/bin/main.c
new/editorconfig-core-c-0.12.10/src/bin/main.c
--- old/editorconfig-core-c-0.12.9/src/bin/main.c 2024-06-17
01:57:14.000000000 +0200
+++ new/editorconfig-core-c-0.12.10/src/bin/main.c 2025-10-04
02:28:10.000000000 +0200
@@ -81,7 +81,7 @@
int name_value_count;
editorconfig_handle eh;
char** file_paths = NULL;
- int path_count; /* the count of path
input*/
+ int path_count = 0; /* the count of path
input*/
/* Will be a EditorConfig file name if -f is specified on command line */
const char* conf_filename = NULL;
@@ -193,7 +193,7 @@
printf("[%s]\n", full_filename);
if (!strcmp(full_filename, "-")) {
- int len;
+ size_t len;
/* Read a line from stdin. If EOF encountered, continue */
if (!fgets(file_line_buffer, FILENAME_MAX + 1, stdin)) {
@@ -207,12 +207,12 @@
-- i;
/* trim the trailing space characters */
- len = strlen(file_line_buffer) - 1;
- while (len >= 0 && isspace(file_line_buffer[len]))
+ len = strlen(file_line_buffer);
+ while (len > 0 && isspace(file_line_buffer[len - 1]))
-- len;
- if (len < 0) /* we meet a blank line */
+ if (len == 0) /* we meet a blank line */
continue;
- file_line_buffer[len + 1] = '\0';
+ file_line_buffer[len] = '\0';
full_filename = file_line_buffer;
while (isspace(*full_filename))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/src/lib/ec_glob.c
new/editorconfig-core-c-0.12.10/src/lib/ec_glob.c
--- old/editorconfig-core-c-0.12.9/src/lib/ec_glob.c 2024-06-17
01:57:14.000000000 +0200
+++ new/editorconfig-core-c-0.12.10/src/lib/ec_glob.c 2025-10-04
02:28:10.000000000 +0200
@@ -130,7 +130,7 @@
}
/* used to search for {num1..num2} case */
- re = pcre2_compile("^\\{[\\+\\-]?\\d+\\.\\.[\\+\\-]?\\d+\\}$",
PCRE2_ZERO_TERMINATED, 0,
+ re =
pcre2_compile_8((PCRE2_SPTR8)"^\\{[\\+\\-]?\\d+\\.\\.[\\+\\-]?\\d+\\}$",
PCRE2_ZERO_TERMINATED, 0,
&error_code, &erroffset, NULL);
if (!re) /* failed to compile */
return -1;
@@ -279,7 +279,7 @@
pcre2_match_data * match_data =
pcre2_match_data_create_from_pattern(re, NULL);
/* Check the case of {num1..num2} */
- rc = pcre2_match(re, c, cc - c + 1, 0, 0, match_data,
NULL);
+ rc = pcre2_match(re, (PCRE2_SPTR8)c, cc - c + 1, 0, 0,
match_data, NULL);
pcre2_match_data_free(match_data);
@@ -353,7 +353,7 @@
pcre2_code_free(re); /* ^\\d+\\.\\.\\d+$ */
- re = pcre2_compile(pcre_str, PCRE2_ZERO_TERMINATED, 0, &error_code,
&erroffset, NULL);
+ re = pcre2_compile((PCRE2_SPTR8)pcre_str, PCRE2_ZERO_TERMINATED, 0,
&error_code, &erroffset, NULL);
if (!re) /* failed to compile */
{
@@ -362,7 +362,7 @@
}
pcre_match_data = pcre2_match_data_create_from_pattern(re, NULL);
- rc = pcre2_match(re, string, strlen(string), 0, 0, pcre_match_data, NULL);
+ rc = pcre2_match(re, (PCRE2_SPTR8)string, strlen(string), 0, 0,
pcre_match_data, NULL);
if (rc < 0) /* failed to match */
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/src/lib/editorconfig.c
new/editorconfig-core-c-0.12.10/src/lib/editorconfig.c
--- old/editorconfig-core-c-0.12.9/src/lib/editorconfig.c 2024-06-17
01:57:14.000000000 +0200
+++ new/editorconfig-core-c-0.12.10/src/lib/editorconfig.c 2025-10-04
02:28:10.000000000 +0200
@@ -343,6 +343,12 @@
int slashes = count_slashes(path);
int i;
+#ifdef WIN32
+ /* detect whether file is on an UNC share such as
//server/sharename/filename */
+ if (slashes >= 3 && path[0] == '/' && path[1] == '/')
+ slashes -= 3;
+#endif
+
files = (char**) calloc(slashes+1, sizeof(char*));
if (files == NULL)
goto failure_cleanup;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-core-c-0.12.9/src/lib/utarray.h
new/editorconfig-core-c-0.12.10/src/lib/utarray.h
--- old/editorconfig-core-c-0.12.9/src/lib/utarray.h 2024-06-17
01:57:14.000000000 +0200
+++ new/editorconfig-core-c-0.12.10/src/lib/utarray.h 2025-10-04
02:28:10.000000000 +0200
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2008-2018, Troy D. Hanson http://troydhanson.github.com/uthash/
+Copyright (c) 2008-2021, Troy D. Hanson http://troydhanson.github.io/uthash/
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
#ifndef UTARRAY_H
#define UTARRAY_H
-#define UTARRAY_VERSION 2.1.0
+#define UTARRAY_VERSION 2.3.0
#include <stddef.h> /* size_t */
#include <string.h> /* memset, etc */
@@ -127,7 +127,7 @@
#define utarray_len(a) ((a)->i)
#define utarray_eltptr(a,j) (((j) < (a)->i) ? _utarray_eltptr(a,j) : NULL)
-#define _utarray_eltptr(a,j) ((a)->d + ((a)->icd.sz * (j)))
+#define _utarray_eltptr(a,j) ((void*)((a)->d + ((a)->icd.sz * (j))))
#define utarray_insert(a,p,j) do { \
if ((j) > (a)->i) utarray_resize(a,j); \
@@ -225,15 +225,16 @@
#define utarray_find(a,v,cmp) bsearch((v),(a)->d,(a)->i,(a)->icd.sz,cmp)
#define utarray_front(a) (((a)->i) ? (_utarray_eltptr(a,0)) : NULL)
-#define utarray_next(a,e) (((e)==NULL) ? utarray_front(a) : ((((a)->i) >
(utarray_eltidx(a,e)+1)) ? _utarray_eltptr(a,utarray_eltidx(a,e)+1) : NULL))
-#define utarray_prev(a,e) (((e)==NULL) ? utarray_back(a) :
((utarray_eltidx(a,e) > 0) ? _utarray_eltptr(a,utarray_eltidx(a,e)-1) : NULL))
+#define utarray_next(a,e) (((e)==NULL) ? utarray_front(a) : (((a)->i !=
utarray_eltidx(a,e)+1) ? _utarray_eltptr(a,utarray_eltidx(a,e)+1) : NULL))
+#define utarray_prev(a,e) (((e)==NULL) ? utarray_back(a) :
((utarray_eltidx(a,e) != 0) ? _utarray_eltptr(a,utarray_eltidx(a,e)-1) : NULL))
#define utarray_back(a) (((a)->i) ? (_utarray_eltptr(a,(a)->i-1)) : NULL)
-#define utarray_eltidx(a,e) (((char*)(e) >= (a)->d) ? (((char*)(e) -
(a)->d)/(a)->icd.sz) : -1)
+#define utarray_eltidx(a,e) (((char*)(e) - (a)->d) / (a)->icd.sz)
/* last we pre-define a few icd for common utarrays of ints and strings */
static void utarray_str_cpy(void *dst, const void *src) {
- char **_src = (char**)src, **_dst = (char**)dst;
- *_dst = (*_src == NULL) ? NULL : strdup(*_src);
+ char *const *srcc = (char *const *)src;
+ char **dstc = (char**)dst;
+ *dstc = (*srcc == NULL) ? NULL : strdup(*srcc);
}
static void utarray_str_dtor(void *elt) {
char **eltc = (char**)elt;