Initial import
[samba] / debian / patches / ubuntu-setlocale-fixes.patch
diff --git a/debian/patches/ubuntu-setlocale-fixes.patch b/debian/patches/ubuntu-setlocale-fixes.patch
new file mode 100644 (file)
index 0000000..c3d17a2
--- /dev/null
@@ -0,0 +1,42 @@
+--- samba-3.0.22.orig/source/lib/util_unistr.c
++++ samba-3.0.22/source/lib/util_unistr.c
+@@ -383,6 +383,7 @@
+ smb_ucs2_t toupper_w(smb_ucs2_t val)
+ {
++      load_case_tables();
+       return upcase_table[SVAL(&val,0)];
+ }
+@@ -392,6 +393,7 @@
+ smb_ucs2_t tolower_w( smb_ucs2_t val )
+ {
++      load_case_tables();
+       return lowcase_table[SVAL(&val,0)];
+ }
+@@ -401,6 +403,7 @@
+ BOOL islower_w(smb_ucs2_t c)
+ {
++      load_case_tables();
+       return upcase_table[SVAL(&c,0)] != c;
+ }
+@@ -410,6 +414,7 @@
+ BOOL isupper_w(smb_ucs2_t c)
+ {
++      load_case_tables();
+       return lowcase_table[SVAL(&c,0)] != c;
+ }
+@@ -419,6 +424,7 @@
+ BOOL isvalid83_w(smb_ucs2_t c)
+ {
++      init_valid_table();
+       return valid_table[SVAL(&c,0)] != 0;
+ }